Page 1 of 1

Error while compiling

Posted: Tue Feb 14, 2012 9:57 pm
by Krishna Chaitanya
Hi Ted,

I have a equation defined in BREAKPOINT block as given below.
g=gmax*exp(-(t-t0)/tau)
where gmax is defined in DERIVATIVE block as given below.
gmax'=-gmax/tau
While compiling I am getting error as:
Error: g is defined as both variable and function in mod file. [g is declared as RANGE variable and included under ASSIGNED block while gmax is declared as RANGE variable and included as state variable].

Please let me know where am I going wrong? Thank you.

Re: Error while compiling

Posted: Wed Feb 15, 2012 11:44 am
by ted
Strange. To discover the cause of these error messages, I'll have to see the complete NMODL file--could you please email it to me?