Page 1 of 1

Print from NMODL?

Posted: Fri Oct 02, 2009 12:01 am
by Bill Connelly
The two easiest ways to figure out where you code is going wrong is to print variables, or to print an arbitrary message after certain flow control statements. But I can't figure out how to do this in from NMODL. Is there a way?

Re: Print from NMODL?

Posted: Fri Oct 02, 2009 10:42 am
by ted
Just insert printf() statements into the NMODL source code. Syntax is same as in C. Example:
printf("flag=%d t=%g\n", flag, t)