File tree Expand file tree Collapse file tree 6 files changed +13
-12
lines changed Expand file tree Collapse file tree 6 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 1414 */
1515
1616#include " Model.h"
17- #include " ConnGrowth .h"
17+ // #include "FixedLayout .h"
1818#include " Connections.h"
1919#include " Factory.h"
2020#include " ParameterManager.h"
@@ -106,10 +106,16 @@ void Model::setupSim()
106106 connections_->createEdgeIndexMap ();
107107}
108108
109+ // Note: This method was previously used for debugging, but it is now dead code left behind.
109110// / Log this simulation step.
110111void Model::logSimStep () const
111112{
112- layout_->printLayout ();
113+ FixedLayout *fixedLayout = dynamic_cast <FixedLayout *>(layout_.get ());
114+ if (fixedLayout == nullptr ) {
115+ return ;
116+ }
117+
118+ fixedLayout->printLayout ();
113119}
114120
115121// / Update the simulation history of every epoch.
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ class Model {
8080 virtual void updateConnections () = 0;
8181
8282protected:
83+ // Note: This method was previously used for debugging, but it is now dead code left behind.
8384 // / Prints debug information about the current state of the network.
8485 void logSimStep () const ;
8586
Original file line number Diff line number Diff line change @@ -58,11 +58,6 @@ void Layout::registerGraphProperties()
5858 // initial graph
5959}
6060
61- void Layout::printLayout ()
62- {
63- // Empty implementation because not all Layouts implement it but it is used by the Model
64- }
65-
6661// / Setup the internal structure of the class.
6762// / Allocate memories to store all layout state, no sequential dependency in this method
6863void Layout::setup ()
Original file line number Diff line number Diff line change @@ -68,9 +68,6 @@ class Layout {
6868 // / @return The number of vertices managed by the Layout
6969 virtual int getNumVertices () const ;
7070
71- // / @brief Prints the layout, used for debugging.
72- virtual void printLayout ();
73-
7471 VectorMatrix xloc_; // /< Store neuron i's x location.
7572
7673 VectorMatrix yloc_; // /< Store neuron i's y location.
Original file line number Diff line number Diff line change @@ -176,6 +176,8 @@ void FixedLayout::initVerticesLocs()
176176 }
177177}
178178
179+ // Note: This code was previously used for debugging, but it is now dead code left behind
180+ // and it is never executed.
179181void FixedLayout::printLayout ()
180182{
181183 ConnGrowth &pConnGrowth
Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ class FixedLayout : public Layout {
5959 // / @return type of the synapse.
6060 virtual edgeType edgType (const int srcVertex, const int destVertex) override ;
6161
62- // / @brief Prints the layout, used for debugging.
63- virtual void printLayout () override ;
62+ // / Prints the layout, used for debugging.
63+ void printLayout ();
6464
6565private:
6666 // / initialize the location maps (xloc and yloc).
You can’t perform that action at this time.
0 commit comments