Skip to content

Commit

Permalink
fix dt condition
Browse files Browse the repository at this point in the history
  • Loading branch information
albertomercurio committed Oct 20, 2024
1 parent eea01f0 commit a3a61fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preset_time.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function PresetTimeCallback(tstops, user_affect!;
condition = let
function (u, t, integrator)
if hasproperty(integrator, :dt)
insorted(t, tstops) && !iszero(integrator.dt)
insorted(t, tstops) && (integrator.t - integrator.dt) != integrator.t
else
insorted(t, tstops)
end
Expand Down

0 comments on commit a3a61fd

Please sign in to comment.