comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: LSODE status=-1
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: LSODE status=-1 [message #82881 is a reply to message #82880] Mon, 21 January 2013 11:28 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Monday, January 21, 2013 1:12:41 PM UTC-5, hal...@yahoo.com wrote:
> I am having trouble using the IDL LSODE function for solving differential equations. It returns with status=-1. The help page says "To continue, reset STATUS to a value greater than 1 and begin again (the excess work step counter will be reset to 0)." I have tried this, but I am not getting anywhere with it. Part of the problem is that it is not clear what "begin again" means. I have tried calling LSODE again with the exact same inputs, except with status set to 2 (with no modifications to Y, X, H, and Derivs since the previous call). This doesn't seem to do anything. The status keeps coming back as -1, and the result doesn't change. Am I supposed to use different input values for repeated calls? If so, which values?

If you call LSODE with the exact same inputs, I don't think it's a surprise that you get the exact same results.

My suggestion: Instead of calling LSODE with the exact same inputs, move on to the next desired integration interval. A status value of -1 indicates "success with some difficulty" which means you should just carry onwards.

Also, you might consider trying my DDEABM integrator:
http://www.physics.wisc.edu/~craigm/idl/math.html#DDEABM
I can't guarantee it will work any better, but it might.

Craig
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Imposing inverse fft to be real
Next Topic: Re: Imposing inverse fft to be real

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 08:56:11 PDT 2025

Total time taken to generate the page: 0.00773 seconds