error using CVode

Anything that doesn't fit elsewhere.
Post Reply
japasto
Posts: 4
Joined: Wed Oct 01, 2008 2:06 pm

error using CVode

Post by japasto »

Hi,
I'm trying to use a variable step integrator (through either the GUI or writing the code), but when I init&start the simulation the following error message appears:

Failed assertion
te>tstop_||te<=t0_
at line 615 of file /home/Hines/neuron/releases/nrn62/src/nrniv/../nrncvode/cvodeobj.cpp

What does it mean?

I use NEURON 6.2 on Windows XP.

thanks,
marco
ted
Site Admin
Posts: 6384
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: error using CVode

Post by ted »

It means that your model contains something (probably in a mod file) that NEURON's adaptive integrators can't handle. Sometimes this is can be fixed by revising one or more mod files, and sometimes not. The only way to find out is for you to send us the code that reproduces the error message. If you want to do that, zip up just enough source code to reproduce the problem (first please see What to include in a zip file, and what to leave out viewtopic.php?f=28&t=560) and send it to me
ted dot carnevale at yale dot edu
ted
Site Admin
Posts: 6384
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: error using CVode

Post by ted »

Well, I was wrong. It had nothing to do with mod files. The problem was caused by an attempt to use the Random class's play() method as a means for randomizing model parameters from run to run. The solution was to factor out the code that assigned values to the randomized parameters into one or more procedures, and to use a custom proc run() (defined at the end of one's program) that calls these procedures every time a simulation is launched. Example:

Code: Select all

proc run() {
  // procedure that assigns new values to certain parameters
  change_params()

  // the following lines are the standard run system's proc run()
        running_ = 1
        stdinit()
        continuerun(tstop)
}
Post Reply