From c830e22facdb7cb29a6e11ca3a5b1a08fefe9932 Mon Sep 17 00:00:00 2001 From: Simon Candelaresi <10759273+SimonCan@users.noreply.github.com> Date: Mon, 11 Dec 2023 18:03:02 +0000 Subject: [PATCH] Update src/semidiscretization/semidiscretization_coupled.jl Co-authored-by: Erik Faulhaber <44124897+efaulhaber@users.noreply.github.com> --- src/semidiscretization/semidiscretization_coupled.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/semidiscretization/semidiscretization_coupled.jl b/src/semidiscretization/semidiscretization_coupled.jl index 958690a42c7..f58cfbf4aec 100644 --- a/src/semidiscretization/semidiscretization_coupled.jl +++ b/src/semidiscretization/semidiscretization_coupled.jl @@ -168,7 +168,11 @@ function rhs!(du_ode, u_ode, semi::SemidiscretizationCoupled, t) semi.semis) # Call rhs! for each semidiscretization - rhs!(u_ode, du_ode, t, semi, 1, semi.semis...) + foreach_enumerate(semi.semis) do (i, semi_) + u_loc = get_system_u_ode(u_ode, i, semi) + du_loc = get_system_u_ode(du_ode, i, semi) + rhs!(du_loc, u_loc, semi_, t) + end runtime = time_ns() - time_start put!(semi.performance_counter, runtime)