MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Using error message output

  • To: mathgroup at smc.vnet.net
  • Subject: [mg43400] Using error message output
  • From: Eric Peterson <ericp at lanl.gov>
  • Date: Fri, 29 Aug 2003 07:16:00 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

I am using NDSolve and sometimes the integrator hits a snag as it's
calculating.  I'll get an error message like:

NDSolve::ndsz :
 At t == 4.198615826788436`, step size is effectively zero; singularity or
stiff system suspected.

Now as it turns out that's just fine; by the time the integrator fails I
have all the results I need.  But I would really like to be able to extract
the value of the variable t at which the integrator stopped so that I can
use it when I plot the results.

I'd rather not kluge something in to parse it out of the error message.  Is
there an elegant way to do this?

Eric


  • Prev by Date: Finding the Path to/Directory for the current EvaluationNotebook?
  • Next by Date: nonlinearfit
  • Previous by thread: Finding the Path to/Directory for the current EvaluationNotebook?
  • Next by thread: Re: Using error message output