From 54f7285098f833b2c28aa2499b0c102d9753bf22 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 1 Jul 2024 14:08:20 -0600 Subject: [PATCH] Adjust a test. --- tests/petsc/petsc_ts_03.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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; -- 2.39.5