Skip to content

Commit e9b8031

Browse files
Handle non-float time
1 parent c632687 commit e9b8031

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/OrdinaryDiffEqCore/src/integrators/integrator_utils.jl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,8 @@ function modify_dt_for_tstops!(integrator)
115115
end
116116
end
117117

118-
function handle_tstop_step!(integrator)
119-
# Check if dt is extremely small (< eps(t))
120-
eps_threshold = eps(abs(integrator.t))
121-
122-
if abs(integrator.dt) < eps_threshold
118+
function handle_tstop_step!(integrator)
119+
if integrator.t isa AbstractFloat && abs(integrator.dt) < eps(abs(integrator.t))
123120
# Skip perform_step! entirely for tiny dt
124121
integrator.accept_step = true
125122
else

0 commit comments

Comments
 (0)