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 16, 2024
1 parent 356354f commit 5abd972
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 5abd972

Please sign in to comment.