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 4e0844b commit 80afc6bCopy full SHA for 80afc6b
src/integrators/integrator_utils.jl
@@ -189,7 +189,7 @@ end
189
end
190
191
@inline function solution_endpoint_match_cur_integrator!(integrator)
192
- if integrator.opts.save_end && integrator.sol.t[integrator.saveiter] != integrator.t
+ if integrator.opts.save_end && (integrator.saveiter == 0 || integrator.sol.t[integrator.saveiter] != integrator.t)
193
integrator.saveiter += 1
194
copyat_or_push!(integrator.sol.t,integrator.saveiter,integrator.t)
195
if integrator.opts.save_idxs == nothing
0 commit comments