From 56396aaaa4250d67188e15374af87368aaaff9e4 Mon Sep 17 00:00:00 2001 From: Ben Wilfong <48168887+wilfonba@users.noreply.github.com> Date: Wed, 5 Nov 2025 12:03:06 -0500 Subject: [PATCH] cfl dt bug fix --- src/simulation/m_sim_helpers.fpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/simulation/m_sim_helpers.fpp b/src/simulation/m_sim_helpers.fpp index 8008225e54..13d14a64f7 100644 --- a/src/simulation/m_sim_helpers.fpp +++ b/src/simulation/m_sim_helpers.fpp @@ -271,17 +271,17 @@ contains if (grid_geometry == 3) then fltr_dtheta = f_compute_filtered_dtheta(k, l) vcfl_dt = cfl_target*(min(dx(j), dy(k), fltr_dtheta)**2._wp) & - /minval(1/(rho*Re_l)) + /maxval(1/(rho*Re_l)) else vcfl_dt = cfl_target*(min(dx(j), dy(k), dz(l))**2._wp) & - /minval(1/(rho*Re_l)) + /maxval(1/(rho*Re_l)) end if elseif (n > 0) then !2D vcfl_dt = cfl_target*(min(dx(j), dy(k))**2._wp)/maxval((1/Re_l)/rho) else !1D - vcfl_dt = cfl_target*(dx(j)**2._wp)/minval(1/(rho*Re_l)) + vcfl_dt = cfl_target*(dx(j)**2._wp)/maxval(1/(rho*Re_l)) end if end if