From: Wolfgang Bangerth Date: Sat, 25 May 2024 03:41:02 +0000 (-0600) Subject: step-55: Be uniform where timer sections are placed. X-Git-Tag: v9.6.0-rc1~221^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17077%2Fhead;p=dealii.git step-55: Be uniform where timer sections are placed. --- diff --git a/examples/step-55/step-55.cc b/examples/step-55/step-55.cc index 745faeeeca..44820c6cab 100644 --- a/examples/step-55/step-55.cc +++ b/examples/step-55/step-55.cc @@ -300,7 +300,7 @@ namespace Step55 void assemble_system(); void solve(); void refine_grid(); - void output_results(const unsigned int cycle) const; + void output_results(const unsigned int cycle); const unsigned int velocity_degree; const double viscosity; @@ -675,8 +675,10 @@ namespace Step55 template - void StokesProblem::output_results(const unsigned int cycle) const + void StokesProblem::output_results(const unsigned int cycle) { + TimerOutput::Scope t(computing_timer, "output"); + { const ComponentSelectFunction pressure_mask(dim, dim + 1); const ComponentSelectFunction velocity_mask(std::make_pair(0, dim), @@ -786,10 +788,7 @@ namespace Step55 solve(); if (Utilities::MPI::n_mpi_processes(mpi_communicator) <= 32) - { - TimerOutput::Scope t(computing_timer, "output"); - output_results(cycle); - } + output_results(cycle); computing_timer.print_summary(); computing_timer.reset();