From 867fb3a2da10e9881be788f37fc177084b211ebe Mon Sep 17 00:00:00 2001 From: Philipp Grete Date: Sun, 10 Nov 2024 11:45:30 +0100 Subject: [PATCH] Enforce max ratio (i.e., limit number of stages) even without dt_hyp --- src/hydro/hydro.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hydro/hydro.cpp b/src/hydro/hydro.cpp index 3861e53a..4e2e5eec 100644 --- a/src/hydro/hydro.cpp +++ b/src/hydro/hydro.cpp @@ -860,7 +860,7 @@ Real EstimateTimestep(MeshData *md) { // or not constrain limit further (which is why RKL2 is there in first place) } else if (hydro_pkg->Param("diffint") == DiffInt::rkl2) { const auto max_dt_ratio = hydro_pkg->Param("rkl2_max_dt_ratio"); - if (calc_dt_hyp && max_dt_ratio > 0.0 && dt_hyp / dt_diff > max_dt_ratio) { + if (max_dt_ratio > 0.0 && dt_hyp / dt_diff > max_dt_ratio) { min_dt = std::min(min_dt, max_dt_ratio * dt_diff); } } else {