From: Wolfgang Bangerth Date: Mon, 1 Jul 2024 20:08:20 +0000 (-0600) Subject: Adjust a test. X-Git-Tag: v9.6.0-rc1~137^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54f7285098f833b2c28aa2499b0c102d9753bf22;p=dealii.git Adjust a test. --- diff --git a/tests/petsc/petsc_ts_03.cc b/tests/petsc/petsc_ts_03.cc index 402f6cdef3..0542a7a04b 100644 --- a/tests/petsc/petsc_ts_03.cc +++ b/tests/petsc/petsc_ts_03.cc @@ -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 &all_in, std::vector &all_out) -> void { deallog << "Interpolate" << std::endl;