Skip to content

Commit

Permalink
improve Unstable error message
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Jun 7, 2024
1 parent ff83ff0 commit be524a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/integrator_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ function check_error(integrator::DEIntegrator)
else
EEst = ""
end
@warn("dt($(integrator.dt)) <= eps(t)($(integrator.t)) $EEst. Aborting. There is either an error in your model specification or the true solution is unstable (or the true solution can not be represented in the precision of $(eltype(integrator.u))).")
@warn("At t=$(integrator.t), dt was forced below floating point epsilon $(integrator.dt)$EEst. Aborting. There is either an error in your model specification or the true solution is unstable (or the true solution can not be represented in the precision of $(eltype(integrator.u))).")

Check warning on line 633 in src/integrator_interface.jl

View check run for this annotation

Codecov / codecov/patch

src/integrator_interface.jl#L633

Added line #L633 was not covered by tests
end
return ReturnCode.Unstable
end
Expand Down

0 comments on commit be524a7

Please sign in to comment.