Page 1 of 1

TITLE block in NMODL file

Posted: Tue Jun 17, 2014 6:11 pm
by neuromau
Is it possible to programmatically access (read-only) the TITLE block (or COMMENTS block) of a compiled NMODL file via hoc?

Re: TITLE block in NMODL file

Posted: Tue Jun 17, 2014 8:53 pm
by hines
The TITLE line is saved in a
static char* modelname;
in the mod file. So it is only available from within a VERBATIM block in that mod file.
Of course that makes it more or less trivially useless since you could do your own identification code in a VERBATIM block

Re: TITLE block in NMODL file

Posted: Tue Jun 17, 2014 9:04 pm
by neuromau
Okay, thanks! In that case I may just use a system call to grep for now to avoid recompiling.