Skip to content

Commit

Permalink
Respect force_save in savevalues!
Browse files Browse the repository at this point in the history
Potential fix for #309
  • Loading branch information
ChrisRackauckas committed Jun 30, 2021
1 parent 6cdf6b4 commit ed4f4be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common_interface/integrator_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function DiffEqBase.savevalues!(
end
end

if integrator.opts.save_everystep || (integrator.opts.save_everystep && (isempty(integrator.sol.t) ||
if force_save || integrator.opts.save_everystep || (integrator.opts.save_everystep && (isempty(integrator.sol.t) ||
(integrator.t !== integrator.sol.t[end])))
saved = true
save_value!(integrator.sol.u, integrator.u, uType, integrator.sizeu)
Expand Down

0 comments on commit ed4f4be

Please sign in to comment.