Page 1 of 1

Segmentation violation after new ParallelNetManager

Posted: Fri Jul 31, 2009 4:02 pm
by mctavish
I am trying to change the network topology with each run in a loop of simulations. With each run, I want to create a ParallelNetManager, create the cells, and perform the assignments. After my first configuration (whether I actually run or not), if I clear all my cells and lists and attempt a new configuration, shortly after calling pnm=new ParallelNetManager(), I get a segmentation violation. (I don't get the segmentation violation with a new ParallelNetManager, but some subsequent call will have the segmentation violation, which is variable, because I can move subsequent statements around and get the violation on various functions).

I assume that something is not quite being cleared or initialized correctly. Any hints? Is there a way to unregister GIDs and cells, or does new ParallelNetManager() do that?

Thanks,
Tom

Re: Segmentation violation after new ParallelNetManager

Posted: Sun Aug 02, 2009 10:05 am
by ted
You could try to put all of your "model setup" code in a template. Then (in pseudocode)

Code: Select all

repeat
  create an instance of the model class
  execute a simulation
  destroy the model instance
until done