After some trial and error, I changed the values of *NSTACK to 100000 in"ERROR nrniv: Stack size too small. Increase -NSTACK"
Windows:
$NRN_HOME/lib/nrn.def and
$NRN_HOME/lib/nrn.defaults.in
Linux:
$NRN_HOME/share/lib/nrn.defaults
$NRN_HOME/share/lib/nrn.defaults.in
and this seems to take care of the problem for now. (Alternatively, it seems one can pass this option on the command line as -NSTACK stacksize; I have not tested this.) However, these FOR loops might grow in the future and I would like some assistance on intelligently setting this value.
Furthermore, there seems to be a companion, NFRAME, which also might come into play at some point. How would one pick reasonable values for NFRAME?
Finally, what is the distinction between nrn.def and nrn.defaults.in?
Brad