]> https://gitweb.dealii.org/ - dealii.git/commitdiff
small code update
authorTimo Heister <timo.heister@gmail.com>
Tue, 24 May 2016 11:13:08 +0000 (12:13 +0100)
committerTimo Heister <timo.heister@gmail.com>
Wed, 1 Jun 2016 11:03:20 +0000 (12:03 +0100)
examples/step-56/step-56.cc

index 770e79fbc86b962b2f8bcbedd9f0ddb15001bbe3..4618406b771d3d35ab3094bf822956858d6b8a60 100644 (file)
@@ -491,7 +491,7 @@ namespace Step56
     fe (velocity_fe, 1, FE_Q<dim> (pressure_degree), 1),
     dof_handler (triangulation),
     velocity_dof_handler (triangulation),
-    computing_timer (std::cout, TimerOutput::summary,
+    computing_timer (std::cout, TimerOutput::never,
                      TimerOutput::wall_times)
   {}
 
@@ -1053,7 +1053,7 @@ namespace Step56
 
 // @sect4{StokesProblem::output_results}
 
-// This function generates graphical output like it is done in step-16.
+// This function generates graphical output like it is done in step-22.
   template <int dim>
   void
   StokesProblem<dim>::output_results (const unsigned int refinement_cycle)  const
@@ -1130,13 +1130,14 @@ namespace Step56
 
         compute_errors ();
 
+        output_results (refinement_cycle);
+
         Utilities::System::MemoryStats mem;
         Utilities::System::get_memory_stats(mem);
         std::cout << "   VM Peak: " << mem.VmPeak << std::endl;
 
         computing_timer.print_summary ();
         computing_timer.reset ();
-        output_results (refinement_cycle);
       }
   }
 }

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.