Skip to content

Commit

Permalink
Update src/semidiscretization/semidiscretization_coupled.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Erik Faulhaber <[email protected]>
  • Loading branch information
SimonCan and efaulhaber authored Dec 11, 2023
1 parent 9b55294 commit c830e22
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/semidiscretization/semidiscretization_coupled.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c830e22

Please sign in to comment.