How to reinit the hoc interpreter?

The basics of how to develop, test, and use models.
Post Reply
eacheon
Posts: 97
Joined: Wed Jan 18, 2006 2:20 pm

How to reinit the hoc interpreter?

Post by eacheon »

How can I clear everything I did in hoc interpreter without a quit() and re-lauch nrniv/nrngui?
hines
Site Admin
Posts: 1711
Joined: Wed May 18, 2005 3:32 pm

Post 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()
Post Reply