From: Niraj D. <ni...@nc...> - 2013-01-11 08:30:18
|
Hi Katja, > solver = moose.HSolve('/model/solve') > solver.dt = moose.element('/clock/tick[0]').dt > solver.target = '/model/' > moose.useClock(0,'/model/solve', 'process') > > instead of: > moose.useClock(0, '/model/##', 'process') > > does it look correct? This is perfect. Scheduling and solver setup is one thing that always leaves the doubt of: "Am I doing this right?". For this reason, Aditya has already written a utility function (moose.utils.resetSim()) to make scheduling of biophysical objects easier. You may not need this, because you are only scheduling the HSolve, and not Compartment, HHChannel, etc. We may even look at resurrecting autoscheduling so that moose.useClock() is not needed at all. Finally, I plan to upgrade Aditya's resetSim() function to handle solver set up as well. For now, what you've done seems correct. Do let us know if you run into problems. Best, Niraj |