Skip to content

Commit

Permalink
Restored timings in semidiscretization coupled.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCan committed Jan 31, 2024
1 parent c3e6037 commit b490cbf
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/semidiscretization/semidiscretization_coupled.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b490cbf

Please sign in to comment.