]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Adjust a test.
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 1 Jul 2024 20:08:20 +0000 (14:08 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 2 Jul 2024 16:48:40 +0000 (10:48 -0600)
tests/petsc/petsc_ts_03.cc

index 402f6cdef3841b571e675a77389b232f4da71446..0542a7a04b1d76585943adc56dc20a7303a1557a 100644 (file)
@@ -177,17 +177,15 @@ public:
     };
 
     // This callback is used to decide to remesh.
-    time_stepper.decide_for_coarsening_and_refinement =
+    time_stepper.decide_and_prepare_for_remeshing =
       [&](const real_type    t,
           const unsigned int step,
-          const VectorType &,
-          bool &resize) -> void {
+          const VectorType &) -> bool {
       deallog << "Prepare at time " << t << " and step " << step << std::endl;
-      resize = (step && step % 5 == 0);
+      return (step && step % 5 == 0);
     };
 
-    // This callback is called if decide_for_coarsening_and_refinement sets
-    // resize to true.
+    // This callback is called if decide_and_prepare_for_remeshing returns true.
     time_stepper.interpolate = [&](const std::vector<VectorType> &all_in,
                                    std::vector<VectorType> &all_out) -> void {
       deallog << "Interpolate" << std::endl;

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.