Page 1 of 1

compiling error

Posted: Wed Aug 09, 2006 5:36 pm
by MH
Hi!
For several of the mechanisms that I want to implement, there is an error message of "name = number at line 15 : K.f.b = 0.168e-03 ...". What can I do to fix this error? Also, if a function is to return no units, do I use empty brackets or no brackets to show that? Please see code below.
Sincerely,
MH
[
UNITS {
(molar) = (mole/litre)
(mM) = (millimolar)
}

PARAMETER {
conc_ca_i = 7.901351e02 (mM)
K.f.b = 0.168e-03 (mM)
N.r.b = 1.0

FUNCTION fb (mM ( )) {
fb = (conc_ca_i / K.f.b) ^ (N.f.b)
}
][/code]

Re: compiling error

Posted: Thu Aug 10, 2006 7:49 am
by ted
MH wrote:For several of the mechanisms that I want to implement, there is an error message of "name = number at line 15 : K.f.b = 0.168e-03 ...". What can I do to fix this error?
Try closing the PARAMETER block.
MH wrote:if a function is to return no units, do I use empty brackets or no brackets to show that?
No. Call it a PROCEDURE. To learn proper NMODL syntax, please see the references
described here: https://www.neuron.yale.edu/phpBB2/viewtopic.php?t=11