From: Matthias Maier Date: Sat, 31 Jul 2021 14:25:52 +0000 (-0500) Subject: Step-69: Apply review suggestion X-Git-Tag: v9.4.0-rc1~1112^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12559%2Fhead;p=dealii.git Step-69: Apply review suggestion --- diff --git a/examples/step-69/step-69.cc b/examples/step-69/step-69.cc index 6ea0cadbf1..4a801f97ba 100644 --- a/examples/step-69/step-69.cc +++ b/examples/step-69/step-69.cc @@ -675,8 +675,6 @@ namespace Step69 } } } - - triangulation.refine_global(refinement); } // @sect4{Assembly of offline matrices} @@ -2472,25 +2470,16 @@ namespace Step69 // scratch space, and initialize the DataOut object. All of these // operations are pretty standard and discussed in detail in the // Discretization and OfflineData classes. - // - // We have to make take care of a special case when resuming an - // interrupted computation though: In order to be able to read in the - // saved mesh and associated state vector we have to make sure to - // not refine the coarse mesh: { print_head(pcout, "create triangulation"); + discretization.setup(); + if (resume) - { - discretization.refinement = 0; - discretization.setup(); - discretization.triangulation.load(base_name + "-checkpoint.mesh"); - } + discretization.triangulation.load(base_name + "-checkpoint.mesh"); else - { - discretization.setup(); - } + discretization.triangulation.refine_global(discretization.refinement); pcout << "Number of active cells: " << discretization.triangulation.n_global_active_cells()