Skip to content

Commit d5d2c3a

Browse files
fix eps for floating point handling
1 parent 0cb4ec7 commit d5d2c3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/integrators/integrator_utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ end
148148
integrator.tprev = integrator.t
149149
if typeof(integrator.t)<:AbstractFloat && !isempty(integrator.opts.tstops)
150150
tstop = top(integrator.opts.tstops)
151-
abs(ttmp - tstop) < 10eps(integrator.t) ? (integrator.t = tstop) : (integrator.t = ttmp)
151+
abs(ttmp - tstop) < 10eps(typeof(integrator.EEst)) ? (integrator.t = tstop) : (integrator.t = ttmp)
152152
else
153153
integrator.t = ttmp
154154
end

0 commit comments

Comments
 (0)