]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix an oversight in initializing the timer in step-40.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 25 Sep 2014 22:35:58 +0000 (17:35 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 26 Sep 2014 15:12:19 +0000 (10:12 -0500)
examples/step-40/step-40.cc

index 06443592dc63521871a14a987d7d0813c646f91c..afc0da2d75d3381a1bc539322514862b4c8c78e8 100644 (file)
@@ -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 <code>pcout</code> 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 <int dim>
   LaplaceProblem<dim>::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)
   {}

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.