From 592097bc927c4fc58dba1b129274a57b2fcf6f4b Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 25 Sep 2014 17:35:58 -0500 Subject: [PATCH] Fix an oversight in initializing the timer in step-40. --- examples/step-40/step-40.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/step-40/step-40.cc b/examples/step-40/step-40.cc index 06443592dc..afc0da2d75 100644 --- a/examples/step-40/step-40.cc +++ b/examples/step-40/step-40.cc @@ -186,7 +186,9 @@ namespace Step40 // machines available (MPI_COMM_WORLD); ask the triangulation to ensure that // the mesh remains smooth and free to refined islands, for example; and // initialize the pcout variable to only allow processor zero - // to output anything: + // to output anything. The final piece is to initialize a timer that we + // use to determine how much compute time the different parts of the program + // take: template LaplaceProblem::LaplaceProblem () : @@ -200,7 +202,8 @@ namespace Step40 pcout (std::cout, (Utilities::MPI::this_mpi_process(mpi_communicator) == 0)), - computing_timer (pcout, + computing_timer (mpi_communicator, + pcout, TimerOutput::summary, TimerOutput::wall_times) {} -- 2.39.5