Skip to content

Commit

Permalink
Merge pull request #1102 from BenChung/use-configurable-init
Browse files Browse the repository at this point in the history
Set change_t_via_interpolation! to use the init mode from the callback
  • Loading branch information
ChrisRackauckas authored Nov 12, 2024
2 parents 9de748d + ed18a42 commit f6aab6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,8 @@ function apply_callback!(integrator,
integrator.tdir * callback.dtrelax * integrator.dt))
end

change_t_via_interpolation!(integrator, integrator.tprev + cb_time)
change_t_via_interpolation!(
integrator, integrator.tprev + cb_time, Val{:false}, callback.initializealg)

# handle saveat
_, savedexactly = savevalues!(integrator)
Expand Down

0 comments on commit f6aab6d

Please sign in to comment.