Page 1 of 1

How to reinit the hoc interpreter?

Posted: Sat Sep 15, 2007 9:26 pm
by eacheon
How can I clear everything I did in hoc interpreter without a quit() and re-lauch nrniv/nrngui?

Posted: Mon Sep 17, 2007 7:01 am
by hines
In general, that is the only way.
For a specific model and gui you can
destroy a model with the idioms employed
by the neurondemo (start with demo/demo.hoc). Also several ModelDB models allow switching between variants, eg. search for "restart" without the quotes.
Throwing away old network models and starting anew requires use of ParallelContext.gid_clear()