TITLE block in NMODL file

NMODL and the Channel Builder.
Post Reply
neuromau
Posts: 97
Joined: Mon Apr 20, 2009 7:02 pm

TITLE block in NMODL file

Post by neuromau »

Is it possible to programmatically access (read-only) the TITLE block (or COMMENTS block) of a compiled NMODL file via hoc?
hines
Site Admin
Posts: 1691
Joined: Wed May 18, 2005 3:32 pm

Re: TITLE block in NMODL file

Post 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
neuromau
Posts: 97
Joined: Mon Apr 20, 2009 7:02 pm

Re: TITLE block in NMODL file

Post by neuromau »

Okay, thanks! In that case I may just use a system call to grep for now to avoid recompiling.
Post Reply