-
-
Notifications
You must be signed in to change notification settings - Fork 79
Closed
Description
Although my ODE is failing by "Error test failures occurred too many times during one internal time step", the integrator.retcode
still returned "Success".
After some debugging I found that in if block (line 1477) the integrator.flag
is changing from -3
to 0
after evaluating line
Sundials.jl/src/common_interface/solve.jl
Line 1482 in 3fa20aa
integrator(integrator.u, integrator.t, Val{1}) |
In my local code, I performed this change in order to get the correct retcode
from my failed ODE:
if integrator.opts.save_end && (isempty(integrator.sol.t) || integrator.sol.t[end] != integrator.t) && integrator.flag == 0
I hope that helps returning a more accurate error.
Metadata
Metadata
Assignees
Labels
No labels