Segmentation Fault when calling BBSaveState.save_test()
Posted: Fri Jan 25, 2019 2:17 am
I would like to use BBSaveState to take a snapshot of the state of my parallel simulation, for use as starting conditions for further model runs. However, when I call BBSaveState.save_test(), a segmentation fault occurs:
I wonder if I am using BBSaveState correctly? I hope someone can help me with this. I am using Neuron 7.5 (6b4c19f) on MacOS.
My simulation is quite complicated. However, even the following (completely trivial) code results in the segmentation fault on the call to save_test.Segmentation fault: 11
Code: Select all
from neuron import h
h.load_file("stdrun.hoc")
pc = h.ParallelContext()
pc.gid_clear()
pc.set_maxstep(10)
section = h.Section()
pc.set_gid2node(0, pc.id())
nc = h.NetCon(section(0.5)._ref_v, None, sec=section)
nc.threshold = 0
nc.delay = 1
nc.weight[0] = 1
pc.cell(0, nc)
pc.setup_transfer()
h.stdinit()
bbss = h.BBSaveState()
pc.psolve(100)
bbss.save_test()