@@ -176,30 +176,30 @@ void GenericProcessor::setSourceNode(GenericProcessor* sn)
176176 {
177177 // std::cout << " The source is not blank." << std::endl;
178178
179- if (!sn->isSink ())
180- {
179+ // if (!sn->isSink())
180+ // {
181181 // std::cout << " The source is not a sink." << std::endl;
182- if (sourceNode != sn)
183- {
184- // std::cout << " The source is new and named " << sn->getName() << std::endl;
182+ if (sourceNode != sn)
183+ {
184+ // std::cout << " The source is new and named " << sn->getName() << std::endl;
185185
186- if (this ->isMerger ())
187- setMergerSourceNode (sn);
188- else
189- sourceNode = sn;
186+ if (this ->isMerger ())
187+ setMergerSourceNode (sn);
188+ else
189+ sourceNode = sn;
190190
191- sn->setDestNode (this );
192- }
193- else
194- {
195- // std::cout << " The source node is not new." << std::endl;
196- }
197- }
198- else
199- {
191+ sn->setDestNode (this );
192+ }
193+ // else
194+ // {
195+ // std::cout << " The source node is not new." << std::endl;
196+ // }
197+ // }
198+ // else
199+ // {
200200 // std::cout << " The source is a sink." << std::endl;
201- sourceNode = 0 ;
202- }
201+ // sourceNode = 0;
202+ // }
203203
204204 }
205205 else
@@ -222,8 +222,8 @@ void GenericProcessor::setDestNode(GenericProcessor* dn)
222222{
223223 // std::cout << "My name is " << getName() << ". Setting dest node." << std::endl;
224224
225- if (!isSink ())
226- {
225+ // if (!isSink())
226+ // {
227227 // std::cout << " I am not a sink." << std::endl;
228228
229229 if (dn != 0 )
@@ -262,13 +262,13 @@ void GenericProcessor::setDestNode(GenericProcessor* dn)
262262
263263 destNode = 0 ;
264264 }
265- }
266- else
267- {
265+ // }
266+ // else
267+ // {
268268 // std::cout << " I am a sink, I can't have a dest node." << std::endl;
269269 // if (dn != 0)
270270 // dn->setSourceNode(this);
271- }
271+ // }
272272}
273273
274274
@@ -381,10 +381,10 @@ void GenericProcessor::update()
381381 createSpikeChannels ();
382382 createConfigurationObjects ();
383383
384- if (this ->isSink ())
385- {
386- settings.numOutputs = 0 ;
387- }
384+ // if (this->isSink())
385+ // {
386+ // settings.numOutputs = 0;
387+ // }
388388
389389 updateSettings (); // allow processors to change custom settings
390390
0 commit comments