-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infinite loop in CVodeF #44
Comments
What version of sundials does sunode interface to? |
This is using the latest version on conda-forge, so 5.3.0. |
@aseyboldt A reproducing example in C would be very helpful. I am going to try and take a look at this soon. |
Thats great, thanks! |
I modified one of the examples so that it shows this infinite loop problem: |
@aseyboldt I was able to reproduce the problem with that example, and we are working on fixing the problem. |
That's great. |
Any news on this? |
@aseyboldt This will be fixed in the next release. |
Thanks! |
Under certain conditions the forward solver of cvodes enters an infinite loop if called using
CV_NORMAL_STEP
. If the step-size decreases untilt + h = t
numerically, then CVode will print a warning, but still return a 0 return value. The loop here inCVodeF
will continue forever.I do not have a reproducing example in C, but here is one that uses the sunode package to wrap sundials:
We start integrating the ode
dy/dt = 1 / (t - 1)
att0 = 1 + 1e-15
:The solver prints error messages repeatedly until the maximum number of warnings in exhausted, then silently continues:
CC @astoeriko
The text was updated successfully, but these errors were encountered: