Given the amount of text that has accumulated in this thread, it's not tooAm I missing something obvious here?
obvious, but something is missing. Your code reads the states from the file
into a SaveState object, and then . . . does nothing with them. The missing
item is a custom proc init() that calls the restore() method. It was buried
way back in an earlier message, so I have repeated it here:
Code: Select all
proc init() {
finitialize(v_init)
svstate.restore()
t = 0 // t is one of the "states"
if (cvode.active()) {
cvode.re_init()
} else {
fcurrent()
}
frecord_init()
}
parsed _after_ the standard run library is loaded, so that it redefines the
init() that is part of the standard run library and not the other way around.