Skip to content

Commit

Permalink
reset the timer also on non-root MPI processes
Browse files Browse the repository at this point in the history
  • Loading branch information
ranocha committed Dec 20, 2023
1 parent 622740a commit 88a3f8d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/callbacks_step/summary.jl
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,13 @@ function initialize_summary_callback(cb::DiscreteCallback, u, t, integrator;
Polyester.reset_threads!()
end

mpi_isroot() || return nothing
# The summary callback should only print information on the root process.
# However, all other MPI processes should also reset the timer so that
# it can be used to diagnose performance.
if !mpi_isroot()
reset_timer!(timer())
return nothing
end

print_startup_message()

Expand Down

0 comments on commit 88a3f8d

Please sign in to comment.