Skip to content

Commit 80afc6b

Browse files
small fixes
1 parent 4e0844b commit 80afc6b

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
@@ -189,7 +189,7 @@ end
189189
end
190190

191191
@inline function solution_endpoint_match_cur_integrator!(integrator)
192-
if integrator.opts.save_end && integrator.sol.t[integrator.saveiter] != integrator.t
192+
if integrator.opts.save_end && (integrator.saveiter == 0 || integrator.sol.t[integrator.saveiter] != integrator.t)
193193
integrator.saveiter += 1
194194
copyat_or_push!(integrator.sol.t,integrator.saveiter,integrator.t)
195195
if integrator.opts.save_idxs == nothing

0 commit comments

Comments
 (0)