When i try to incorporate the cvode.active(1) mechanism, i get back the error message
The strange is that i don't get the message while the input current changes from -500nA (t=400ms) to 0nA but at the time of spike reset (t=448ms).oc>CVode-- At t = 448.687, too much accuracy requested.
CVode a75fc8 acell advance_tn failed, err=-5.
err=-5
nrniv: variable step integrator error
near line 28
{neurosimple.I=0 cvode.re_init()}
^
fadvance( )
advance( )
step( )
continuerun(1000 )
and others
My .hoc code is :
Code: Select all
load_file("nrngui.hoc")
cvode.active(1)
//* setup the cell
create acell
access acell
objref neurosimple, stim, fresh
acell neurosimple = new STN_NEURON(0.5)
neurosimple.I = -500
fresh = new FInitializeHandler("Isend()")
proc Isend(){
Isend1 (400,0)
}
proc Isend1 () {
sprint(tstr,"neurosimple.I=%g cvode.re_init()",$2)
cvode.event($1,tstr)
}
tstop = 1000
xopen("STN.ses")
Thanks