@@ -136,7 +136,7 @@ pure subroutine s_compute_enthalpy(q_prim_vf, pres, rho, gamma, pi_inf, Re, H, a
136136
137137 E = gamma* pres + pi_inf + 5.e-1_wp * rho* vel_sum + qv
138138
139- ! ENERGY ADJUSTMENTS FOR HYPERELASTIC ENERGY
139+ ! Adjust energy for hyperelasticity
140140 if (hyperelasticity) then
141141 E = E + G* q_prim_vf(xiend + 1 )% sf(j, k, l)
142142 end if
@@ -152,8 +152,8 @@ end subroutine s_compute_enthalpy
152152 ! ! @param j x index
153153 ! ! @param k y index
154154 ! ! @param l z index
155- ! ! @param icfl_sf cell centered inviscid cfl number
156- ! ! @param vcfl_sf (optional) cell centered viscous cfl number
155+ ! ! @param icfl_sf cell- centered inviscid cfl number
156+ ! ! @param vcfl_sf (optional) cell- centered viscous CFL number
157157 ! ! @param Rc_sf (optional) cell centered Rc
158158 pure subroutine s_compute_stability_from_dt (vel , c , rho , Re_l , j , k , l , icfl_sf , vcfl_sf , Rc_sf )
159159 ! $acc routine seq
@@ -168,20 +168,19 @@ pure subroutine s_compute_stability_from_dt(vel, c, rho, Re_l, j, k, l, icfl_sf,
168168
169169 ! Inviscid CFL calculation
170170 if (p > 0 .or. n > 0 ) then
171- ! 2D/3D cases
171+ ! 2D/3D
172172 icfl_sf(j, k, l) = dt/ f_compute_multidim_cfl_terms(vel, c, j, k, l)
173173 else
174- ! 1D case - exact original logic
174+ ! 1D
175175 icfl_sf(j, k, l) = (dt/ dx(j))* (abs (vel(1 )) + c)
176176 end if
177177
178178 ! Viscous calculations
179179 if (viscous) then
180- fltr_dtheta = f_compute_filtered_dtheta(k, l)
181-
182180 if (p > 0 ) then
183181 ! 3D
184182 if (grid_geometry == 3 ) then
183+ fltr_dtheta = f_compute_filtered_dtheta(k, l)
185184 vcfl_sf(j, k, l) = maxval (dt/ Re_l/ rho) &
186185 / min (dx(j), dy(k), fltr_dtheta)** 2._wp
187186 Rc_sf(j, k, l) = min (dx(j)* (abs (vel(1 )) + c), &
@@ -235,17 +234,16 @@ pure subroutine s_compute_dt_from_cfl(vel, c, max_dt, rho, Re_l, j, k, l)
235234 ! 2D/3D cases
236235 icfl_dt = cfl_target* f_compute_multidim_cfl_terms(vel, c, j, k, l)
237236 else
238- ! 1D case - exact original logic
237+ ! 1D case
239238 icfl_dt = cfl_target* (dx(j)/ (abs (vel(1 )) + c))
240239 end if
241240
242241 ! Viscous calculations
243242 if (viscous) then
244- fltr_dtheta = f_compute_filtered_dtheta(k, l)
245-
246243 if (p > 0 ) then
247244 ! 3D
248245 if (grid_geometry == 3 ) then
246+ fltr_dtheta = f_compute_filtered_dtheta(k, l)
249247 vcfl_dt = cfl_target* (min (dx(j), dy(k), fltr_dtheta)** 2._wp ) &
250248 / minval (1 / (rho* Re_l))
251249 else
@@ -261,7 +259,7 @@ pure subroutine s_compute_dt_from_cfl(vel, c, max_dt, rho, Re_l, j, k, l)
261259 end if
262260 end if
263261
264- if (any (re_size > 0 )) then
262+ if (any (Re_size > 0 )) then
265263 max_dt(j, k, l) = min (icfl_dt, vcfl_dt)
266264 else
267265 max_dt(j, k, l) = icfl_dt
0 commit comments