From b8f1fd4998142769e962c78f9f6ed218e76ea7c6 Mon Sep 17 00:00:00 2001 From: Benjamin Chung Date: Thu, 31 Oct 2024 15:48:14 -0700 Subject: [PATCH 1/2] Set change_t_via_interpolation! to use the init mode from the callback --- src/callbacks.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callbacks.jl b/src/callbacks.jl index 142ac93bb..89498509f 100644 --- a/src/callbacks.jl +++ b/src/callbacks.jl @@ -558,7 +558,7 @@ 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) From ed18a424114c850ecd6a4af400edc839a35a67aa Mon Sep 17 00:00:00 2001 From: Benjamin Chung Date: Thu, 31 Oct 2024 15:55:42 -0700 Subject: [PATCH 2/2] Format --- src/callbacks.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/callbacks.jl b/src/callbacks.jl index 89498509f..1ce0bdf63 100644 --- a/src/callbacks.jl +++ b/src/callbacks.jl @@ -558,7 +558,8 @@ function apply_callback!(integrator, integrator.tdir * callback.dtrelax * integrator.dt)) end - change_t_via_interpolation!(integrator, integrator.tprev + cb_time, Val{:false}, callback.initializealg) + change_t_via_interpolation!( + integrator, integrator.tprev + cb_time, Val{:false}, callback.initializealg) # handle saveat _, savedexactly = savevalues!(integrator)