From 105ffcf4de54a119eff471cc6973e79097a4554d Mon Sep 17 00:00:00 2001 From: William Throwe Date: Fri, 16 Feb 2024 16:24:17 -0500 Subject: [PATCH 01/16] Ignore decreases in PreventRapidIncrease --- src/Time/StepChoosers/PreventRapidIncrease.hpp | 18 ++++++++++-------- .../StepChoosers/Test_PreventRapidIncrease.cpp | 4 +++- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/Time/StepChoosers/PreventRapidIncrease.hpp b/src/Time/StepChoosers/PreventRapidIncrease.hpp index 86c8fb28b9f7..c3e658706df8 100644 --- a/src/Time/StepChoosers/PreventRapidIncrease.hpp +++ b/src/Time/StepChoosers/PreventRapidIncrease.hpp @@ -17,10 +17,10 @@ namespace StepChoosers { /// Avoids instabilities due to rapid increases in the step size by -/// preventing the step size from increasing unless all steps in the -/// time-stepper history are the same size. If there have been recent -/// step size changes the new size bound is the size of the most -/// recent step, otherwise it is infinite (no restriction is imposed). +/// preventing the step size from increasing if any step in the +/// time-stepper history increased. If there have been recent step +/// size increases, the new size bound is the size of the most recent +/// step, otherwise it is infinite (no restriction is imposed). template class PreventRapidIncrease : public StepChooser { public: @@ -48,15 +48,17 @@ class PreventRapidIncrease : public StepChooser { const double sloppiness = slab_rounding_error(history.front().time_step_id.step_time()); std::optional