We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c632687 commit e9b8031Copy full SHA for e9b8031
lib/OrdinaryDiffEqCore/src/integrators/integrator_utils.jl
@@ -115,11 +115,8 @@ function modify_dt_for_tstops!(integrator)
115
end
116
117
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
+function handle_tstop_step!(integrator)
+ if integrator.t isa AbstractFloat && abs(integrator.dt) < eps(abs(integrator.t))
123
# Skip perform_step! entirely for tiny dt
124
integrator.accept_step = true
125
else
0 commit comments