]> https://gitweb.dealii.org/ - dealii.git/commitdiff
step-37: Time the output writing stage.
authorDavid Wells <drwells@email.unc.edu>
Sun, 26 Aug 2018 20:07:18 +0000 (16:07 -0400)
committerDavid Wells <drwells@email.unc.edu>
Tue, 28 Aug 2018 13:44:08 +0000 (09:44 -0400)
examples/step-37/step-37.cc

index 7cad25fb3c7de8e6a0cc20a250bc786b5e5e4d42..568249a4a88684f24d9e65634881c08a71a5fc3b 100644 (file)
@@ -1142,6 +1142,7 @@ namespace Step37
   template <int dim>
   void LaplaceProblem<dim>::output_results(const unsigned int cycle) const
   {
+    Timer time;
     if (triangulation.n_global_active_cells() > 1000000)
       return;
 
@@ -1175,6 +1176,9 @@ namespace Step37
         std::ofstream master_output(master_name);
         data_out.write_pvtu_record(master_output, filenames);
       }
+
+    time_details << "Time write output          (CPU/wall) " << time.cpu_time()
+                 << "s/" << time.wall_time() << "s\n";
   }
 
 

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.