Skip to content

Commit c168d78

Browse files
simplify tstops handling logic
1 parent 289df8f commit c168d78

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

lib/OrdinaryDiffEqCore/src/integrators/integrator_utils.jl

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -373,17 +373,6 @@ function fixed_t_for_floatingpoint_error!(integrator, ttmp)
373373
# Reset the flag now that we're snapping to tstop
374374
integrator.next_step_tstop = false
375375
return integrator.tstop_target
376-
end
377-
378-
if has_tstop(integrator)
379-
tstop = integrator.tdir * first_tstop(integrator)
380-
if abs(ttmp - tstop) <
381-
100eps(float(max(integrator.t, tstop) / oneunit(integrator.t))) *
382-
oneunit(integrator.t)
383-
tstop
384-
else
385-
ttmp
386-
end
387376
else
388377
ttmp
389378
end

0 commit comments

Comments
 (0)