From 64e6ea58faac63539801aeeac616453aba9061b8 Mon Sep 17 00:00:00 2001 From: "Aaron M. Lattanzi" <103702284+AMLattanzi@users.noreply.github.com> Date: Mon, 2 Dec 2024 16:01:37 -0800 Subject: [PATCH] Change default n substep. (#1992) --- Source/TimeIntegration/ERF_ComputeTimestep.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/TimeIntegration/ERF_ComputeTimestep.cpp b/Source/TimeIntegration/ERF_ComputeTimestep.cpp index d09f9b80a..28131b92a 100644 --- a/Source/TimeIntegration/ERF_ComputeTimestep.cpp +++ b/Source/TimeIntegration/ERF_ComputeTimestep.cpp @@ -201,9 +201,7 @@ ERF::estTimeStep (int level, long& dt_fast_ratio) const if (fixed_dt[level] > 0. && fixed_fast_dt[level] > 0.) { dt_fast_ratio = static_cast( fixed_dt[level] / fixed_fast_dt[level] ); } else if (fixed_dt[level] > 0.) { - dt_fast_ratio = static_cast( std::ceil((fixed_dt[level]/estdt_comp)) ); - } else { - dt_fast_ratio = (estdt_lowM_inv > 0.0) ? static_cast( std::ceil((estdt_lowM/estdt_comp)) ) : 1; + dt_fast_ratio = static_cast( 6 ); } // Force time step ratio to be an even value