NMODL Units
Posted: Wed Mar 07, 2012 8:05 am
I am using the gap junction version that is mentioned in NEURON book(chapter 10). In that piece of code(gap.mod), even if i change the units of resistance r there is no impact on the result. For example if I change the units of r to ohm or gigaohm or leave it dimensionless it neither produces error or alters the result. May i know the reason for this ? By result i mean voltage response of either of the cell.
I am pasting the code here.
Thanks in advance.
I am pasting the code here.
Code: Select all
NEURON {
POINT_PROCESS gap
NONSPECIFIC_CURRENT i
RANGE r, i
POINTER vgap
}
PARAMETER {
r = 5e3 (megohm)
}
ASSIGNED {
i (nanoamp)
vgap (millivolt)
v (millivolt)
}
BREAKPOINT {
i = (v - vgap)/r
}