]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Time output_results. A couple more minor text edits.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 13 Aug 2009 14:36:29 +0000 (14:36 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 13 Aug 2009 14:36:29 +0000 (14:36 +0000)
git-svn-id: https://svn.dealii.org/trunk@19253 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-32/step-32.cc

index 5e5cf3f08dacbbe3ae0466b78947fb2ed76774a3..b39f291af4bb4647ddda059283c7e668715b4297 100644 (file)
@@ -2640,6 +2640,8 @@ void BoussinesqFlowProblem<dim>::output_results ()  const
   if (timestep_number % 10 != 0)
     return;
 
+  computing_timer.enter_section ("Postprocessing");
+  
   if (Utilities::Trilinos::get_this_mpi_process(trilinos_communicator) == 0)
     {
 
@@ -2719,13 +2721,21 @@ void BoussinesqFlowProblem<dim>::output_results ()  const
       std::ofstream output (filename.str().c_str());
       data_out.write_vtk (output);
     }
+
+  computing_timer.leave_section ();
 }
 
 
 
                                 // @sect4{BoussinesqFlowProblem::refine_mesh}
 
-                                // Nothing new here, either...
+                                // Nothing new here, either. Since the
+                                // <code>setup_dofs</code> function that we
+                                // call in the middle has its own timer
+                                // section, we split timing this function
+                                // into two sections. It will also allow us
+                                // to easily identify which of the two is
+                                // more expensive.
 template <int dim>
 void BoussinesqFlowProblem<dim>::refine_mesh (const unsigned int max_grid_level)
 {
@@ -2876,7 +2886,7 @@ void BoussinesqFlowProblem<dim>::run ()
 
                                 // @sect3{The <code>main</code> function}
 
-                                // This is copied verbatim from step-31.
+                                // This is copied verbatim from step-31:
 int main (int argc, char *argv[])
 {
   try

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.