I wanted to implement a gap junction in my model and failed. So I went back to the NEURON book, created an empty test directory, copied the gap.mod file :
Code: Select all
NEURON {
POINT_PROCESS gap
POINTER vgap
NONSPECIFIC_CURRENT i
RANGE r, i
}
PARAMETER {
r = 2e9 (megohm)
}
ASSIGNED {
v (millivolt)
vgap (millivolt)
i (nanoamp)
}
BREAKPOINT {
i = (v - vgap)/r
}
Code: Select all
create a,b
access a
forall {nseg=10 L=1000 diam=10 insert hh}
objref g
g = new gap()
g.r =3
Additional mechanisms from files
gap.mod
/Applications/NEURON-6.0/nrn/i386/bin/nrniv.app/Contents/MacOS/nrniv: point process not located in a section
in test.hoc near line 6
g.r =3
^
Now, if I do locate the synapse (that's what I did in my main model) by using
Code: Select all
create a,b
access a
forall {nseg=10 L=1000 diam=10 insert hh}
objref g
g = new gap(0.5)
g.r =3
NB: I'm under Mac OS 10.4 and use NEURON 6.0finitialize(-50)
/Applications/NEURON-6.0/nrn/i386/bin/nrniv.app/Contents/MacOS/nrniv: Bus error See $NEURONHOME/lib/help/oc.help
near line 1
finitialize(-50)
^