You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/integrator_interface.jl
+12-16Lines changed: 12 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -651,15 +651,13 @@ function check_error(integrator::DEIntegrator)
651
651
EEst =""
652
652
end
653
653
@warn"dt($(integrator.dt)) <= dtmin($(opts.dtmin)) at t=$(integrator.t)$EEst. Aborting. There is either an error in your model specification or the true solution is unstable."
654
-
else
655
-
@SciMLMessage(verbose, :dt_min_unstable) do
656
-
ifisdefined(integrator, :EEst)
657
-
EEst =", and step error estimate = $(integrator.EEst)"
658
-
else
659
-
EEst =""
660
-
end
661
-
"dt($(integrator.dt)) <= dtmin($(opts.dtmin)) at t=$(integrator.t)$EEst. Aborting. There is either an error in your model specification or the true solution is unstable."
662
-
end
654
+
else
655
+
EEst =ifisdefined(integrator, :EEst)
656
+
", and step error estimate = $(integrator.EEst)"
657
+
else
658
+
""
659
+
end
660
+
@SciMLMessage(LazyString("dt(", integrator.dt, ") <= dtmin(", opts.dtmin, ") at t=", integrator.t, EEst, ". Aborting. There is either an error in your model specification or the true solution is unstable."), verbose, :dt_min_unstable)
663
661
end
664
662
return ReturnCode.DtLessThanMin
665
663
elseif!step_accepted && integrator.t isa AbstractFloat &&
@@ -672,14 +670,12 @@ function check_error(integrator::DEIntegrator)
672
670
end
673
671
@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)))."
674
672
else
675
-
@SciMLMessage(verbose, :dt_epsilon) do
676
-
ifisdefined(integrator, :EEst)
677
-
EEst =", and step error estimate = $(integrator.EEst)"
678
-
else
679
-
EEst =""
680
-
end
681
-
"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)))."
673
+
EEst =ifisdefined(integrator, :EEst)
674
+
", and step error estimate = $(integrator.EEst)"
675
+
else
676
+
""
682
677
end
678
+
@SciMLMessage(LazyString("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), ")."), verbose, :dt_epsilon)
0 commit comments