Skip to content

Commit b88ae21

Browse files
author
oscarddssmith
committed
improve check for whether dt<relative dtmin
1 parent 3abb733 commit b88ae21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/integrator_interface.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ function check_error(integrator::DEIntegrator)
599599
end
600600
return ReturnCode.DtLessThanMin
601601
elseif !step_accepted && integrator.t isa AbstractFloat &&
602-
abs(integrator.dt) <= abs(eps(integrator.t))
602+
integrator.dt == integrator.t+integrator.dt
603603
if verbose
604604
if isdefined(integrator, :EEst)
605605
EEst = ", and step error estimate = $(integrator.EEst)"

0 commit comments

Comments
 (0)