We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7982c58 commit 56396aaCopy full SHA for 56396aa
src/simulation/m_sim_helpers.fpp
@@ -271,17 +271,17 @@ contains
271
if (grid_geometry == 3) then
272
fltr_dtheta = f_compute_filtered_dtheta(k, l)
273
vcfl_dt = cfl_target*(min(dx(j), dy(k), fltr_dtheta)**2._wp) &
274
- /minval(1/(rho*Re_l))
+ /maxval(1/(rho*Re_l))
275
else
276
vcfl_dt = cfl_target*(min(dx(j), dy(k), dz(l))**2._wp) &
277
278
end if
279
elseif (n > 0) then
280
!2D
281
vcfl_dt = cfl_target*(min(dx(j), dy(k))**2._wp)/maxval((1/Re_l)/rho)
282
283
!1D
284
- 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))
285
286
287
0 commit comments