From 7a525e0a9e0d5fafaff5f839182eca60a5c465ac Mon Sep 17 00:00:00 2001 From: Candace Gilet Date: Mon, 6 Nov 2023 14:39:27 -0500 Subject: [PATCH] ensure initial_shrink still gets applied. together with pr83, this (#84) ensures the initial timestep is computed as expected. This will require redoing some regression tests due to the change in the initial dt. Co-authored-by: Ann Almgren --- src/incflo_advance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/incflo_advance.cpp b/src/incflo_advance.cpp index 459c0a80..8c33dd8d 100644 --- a/src/incflo_advance.cpp +++ b/src/incflo_advance.cpp @@ -10,7 +10,7 @@ void incflo::Advance() Real strt_step = static_cast(ParallelDescriptor::second()); // Compute time step size - int initialisation = 0; + int initialisation = ( m_dt < 0 ); bool explicit_diffusion = (m_diff_type == DiffusionType::Explicit); ComputeDt(initialisation, explicit_diffusion);