Skip to content

Commit 833ac09

Browse files
fix other event test
1 parent 29d0f03 commit 833ac09

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

lib/OrdinaryDiffEqCore/src/integrators/integrator_utils.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ function _savevalues!(integrator, force_save, reduce_size)::Tuple{Bool, Bool}
191191
end
192192
if force_save || (integrator.opts.save_everystep &&
193193
(isempty(integrator.sol.t) ||
194+
(integrator.t !== integrator.sol.t[end] || iszero(integrator.dt)) &&
194195
(integrator.opts.save_end || integrator.t !== integrator.sol.prob.tspan[2])
195196
))
196197
integrator.saveiter += 1

test/interface/ode_tstops_tests.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ end
3636
prob2 = remake(prob_ode_linear, tspan = (0.0, tdir * 1.0))
3737
integrator = init(prob2, Tsit5())
3838
tstops = tdir .* [0, 1 / 5, 1 / 4, 1 / 3, 1 / 2, 3 / 4, 1]
39-
tstops[1] = 0.0
4039
for tstop in tstops
4140
add_tstop!(integrator, tstop)
4241
end

0 commit comments

Comments
 (0)