Print from NMODL?
-
- Posts: 86
- Joined: Thu May 22, 2008 11:54 pm
- Location: Australian National University
Print from NMODL?
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?
-
- Site Admin
- Posts: 6305
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Print from NMODL?
Just insert printf() statements into the NMODL source code. Syntax is same as in C. Example:
printf("flag=%d t=%g\n", flag, t)
printf("flag=%d t=%g\n", flag, t)