problem with nseg
Posted: Tue Jan 25, 2011 8:09 am
Greetings, I have the following coding problem,
The above works fine. Problem occurs when nseg of POST is changed to 2 or more, then NEURON gives me Segmentation violation error:
run()
^
fadvance()
advance()
step()
continuerun(300)
and others
What is the cause of this error? I would like to understand this because eventually i would like to have many segments, each with a different gbar_mechB value.
Code: Select all
create PRE
access PRE
insert mechA #a distributed process, containing variable V
PRE.L = 25
PRE.diam = 25
create POST
access POST
insert mechB #another distributed process, contains POINTER P, pointing to V
POST.L = 25
POST.diam =25
POST.nseg = 1
gbar_mechB = 0.001
setpointer POST.P_mechB(0.5), PRE.V_mechA(0.5)
objref ic
PRE ic = new IClamp(0.5)
ic.del = 5
ic.amp = 0.01
ic.dur = 50
tstop = 100
init()
run()
run()
^
fadvance()
advance()
step()
continuerun(300)
and others
What is the cause of this error? I would like to understand this because eventually i would like to have many segments, each with a different gbar_mechB value.