From b490cbfbe8869fe93c6743052ffea74b4f6b792c Mon Sep 17 00:00:00 2001 From: SimonCan Date: Wed, 31 Jan 2024 10:54:56 +0000 Subject: [PATCH] Restored timings in semidiscretization coupled. --- .../semidiscretization_coupled.jl | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/semidiscretization/semidiscretization_coupled.jl b/src/semidiscretization/semidiscretization_coupled.jl index db61d8027fe..dc21dbe9a1e 100644 --- a/src/semidiscretization/semidiscretization_coupled.jl +++ b/src/semidiscretization/semidiscretization_coupled.jl @@ -161,15 +161,19 @@ function rhs!(du_ode, u_ode, semi::SemidiscretizationCoupled, t) time_start = time_ns() - foreach(semi.semis) do semi_ - copy_to_coupled_boundary!(semi_.boundary_conditions, u_ode, semi, semi_) + @trixi_timeit timer() "copy to coupled boundaries" begin + foreach(semi.semis) do semi_ + copy_to_coupled_boundary!(semi_.boundary_conditions, u_ode, semi, semi_) + end end # Call rhs! for each semidiscretization - 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) + @trixi_timeit timer() "copy to coupled boundaries" begin + 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 end runtime = time_ns() - time_start