From: bangerth Date: Thu, 13 Aug 2009 14:36:29 +0000 (+0000) Subject: Time output_results. A couple more minor text edits. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dd307dd292f7410bd5e70e6450fadc10d5e2464;p=dealii-svn.git Time output_results. A couple more minor text edits. git-svn-id: https://svn.dealii.org/trunk@19253 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-32/step-32.cc b/deal.II/examples/step-32/step-32.cc index 5e5cf3f08d..b39f291af4 100644 --- a/deal.II/examples/step-32/step-32.cc +++ b/deal.II/examples/step-32/step-32.cc @@ -2640,6 +2640,8 @@ void BoussinesqFlowProblem::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::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 + // setup_dofs 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 void BoussinesqFlowProblem::refine_mesh (const unsigned int max_grid_level) { @@ -2876,7 +2886,7 @@ void BoussinesqFlowProblem::run () // @sect3{The main function} - // This is copied verbatim from step-31. + // This is copied verbatim from step-31: int main (int argc, char *argv[]) { try