From 5ca4d13023ec196dac9c7d378262f2dada5efc56 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sun, 18 Aug 2024 03:14:52 -0400 Subject: [PATCH] fix other composites --- .../src/perform_step/composite_perform_step.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/OrdinaryDiffEqCore/src/perform_step/composite_perform_step.jl b/lib/OrdinaryDiffEqCore/src/perform_step/composite_perform_step.jl index 38c57a167c..b840ebeb41 100644 --- a/lib/OrdinaryDiffEqCore/src/perform_step/composite_perform_step.jl +++ b/lib/OrdinaryDiffEqCore/src/perform_step/composite_perform_step.jl @@ -95,8 +95,14 @@ function initialize!(integrator, cache::CompositeCache{Tuple{T1, T2}, F}) where cache.current = cache.choice_function(integrator) if cache.current == 1 initialize!(integrator, @inbounds(cache.caches[1])) + fsalfirst, fsallast = get_fsalfirstlast(cache.caches[1]) + integrator.fsalfirst = fsalfirst + integrator.fsallast = fsallast elseif cache.current == 2 initialize!(integrator, @inbounds(cache.caches[2])) + fsalfirst, fsallast = get_fsalfirstlast(cache.caches[2]) + integrator.fsalfirst = fsalfirst + integrator.fsallast = fsallast reset_alg_dependent_opts!(integrator.opts.controller, integrator.alg.algs[1], integrator.alg.algs[2]) end