From: Wolfgang Bangerth Date: Sat, 6 Apr 2024 16:22:37 +0000 (-0600) Subject: Unclutter step-40's run() function. X-Git-Tag: v9.6.0-rc1~395^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09bc76e5a8f041231ea51ffc186262a86a0a17a8;p=dealii.git Unclutter step-40's run() function. Move detailed output into the function that actually creates this information. This ensures that the run() function itself remains rather clean and easy to follow. --- diff --git a/examples/step-40/step-40.cc b/examples/step-40/step-40.cc index 2b353a75c1..818769774d 100644 --- a/examples/step-40/step-40.cc +++ b/examples/step-40/step-40.cc @@ -243,6 +243,12 @@ namespace Step40 dof_handler.distribute_dofs(fe); + pcout << " Number of active cells: " + << triangulation.n_global_active_cells() << std::endl + << " Number of degrees of freedom: " << dof_handler.n_dofs() + << std::endl; + + // The next two lines extract some information we will need later on, // namely two index sets that provide information about which degrees of // freedom are owned by the current processor (this information will be @@ -644,12 +650,6 @@ namespace Step40 refine_grid(); setup_system(); - - pcout << " Number of active cells: " - << triangulation.n_global_active_cells() << std::endl - << " Number of degrees of freedom: " << dof_handler.n_dofs() - << std::endl; - assemble_system(); solve();