Segmentation violation after new ParallelNetManager

General issues of interest both for network and
individual cell parallelization.

Moderator: hines

Post Reply
mctavish
Posts: 74
Joined: Tue Mar 14, 2006 6:10 pm
Location: New Haven, CT

Segmentation violation after new ParallelNetManager

Post 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
ted
Site Admin
Posts: 6300
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Segmentation violation after new ParallelNetManager

Post 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
Post Reply