@@ -148,15 +148,15 @@ contains
148148
149149 ! Generating table header for the stability criteria to be outputted
150150 if (cfl_dt) then
151- if (any (Re_size > 0 ) ) then
151+ if (viscous ) then
152152 write (1 , ' (A)' ) ' ==== Time-steps ====== dt ===== Time ======= ICFL ' // &
153153 ' Max ==== VCFL Max ====== Rc Min ======='
154154 else
155155 write (1 , ' (A)' ) ' =========== Time-steps ============== dt ===== Time ' // &
156156 ' ============== ICFL Max ============='
157157 end if
158158 else
159- if (any (Re_size > 0 ) ) then
159+ if (viscous ) then
160160 write (1 , ' (A)' ) ' ==== Time-steps ====== Time ======= ICFL ' // &
161161 ' Max ==== VCFL Max ====== Rc Min ======='
162162 else
@@ -266,7 +266,7 @@ contains
266266 ! Compute mixture sound speed
267267 call s_compute_speed_of_sound(pres, rho, gamma, pi_inf, H, alpha, vel_sum, 0d0 , c)
268268
269- if (any (Re_size > 0 ) ) then
269+ if (viscous ) then
270270 call s_compute_stability_from_dt(vel, c, rho, Re, j, k, l, icfl_sf, vcfl_sf, Rc_sf)
271271 else
272272 call s_compute_stability_from_dt(vel, c, rho, Re, j, k, l, icfl_sf)
@@ -282,13 +282,13 @@ contains
282282#ifdef CRAY_ACC_WAR
283283 !$acc update host(icfl_sf)
284284
285- if (any (Re_size > 0 ) ) then
285+ if (viscous ) then
286286 !$acc update host(vcfl_sf, Rc_sf)
287287 end if
288288
289289 icfl_max_loc = maxval (icfl_sf)
290290
291- if (any (Re_size > 0 ) ) then
291+ if (viscous ) then
292292 vcfl_max_loc = maxval (vcfl_sf)
293293 Rc_min_loc = minval (Rc_sf)
294294 end if
@@ -297,7 +297,7 @@ contains
297297 icfl_max_loc = maxval (icfl_sf)
298298 !$acc end kernels
299299
300- if (any (Re_size > 0 ) ) then
300+ if (viscous ) then
301301 !$acc kernels
302302 vcfl_max_loc = maxval (vcfl_sf)
303303 Rc_min_loc = minval (Rc_sf)
@@ -317,21 +317,21 @@ contains
317317 Rc_min_glb)
318318 else
319319 icfl_max_glb = icfl_max_loc
320- if (any (Re_size > 0 ) ) vcfl_max_glb = vcfl_max_loc
321- if (any (Re_size > 0 ) ) Rc_min_glb = Rc_min_loc
320+ if (viscous ) vcfl_max_glb = vcfl_max_loc
321+ if (viscous ) Rc_min_glb = Rc_min_loc
322322 end if
323323
324324 ! Determining the stability criteria extrema over all the time- steps
325325 if (icfl_max_glb > icfl_max) icfl_max = icfl_max_glb
326326
327- if (any (Re_size > 0 ) ) then
327+ if (viscous ) then
328328 if (vcfl_max_glb > vcfl_max) vcfl_max = vcfl_max_glb
329329 if (Rc_min_glb < Rc_min) Rc_min = Rc_min_glb
330330 end if
331331
332332 ! Outputting global stability criteria extrema at current time- step
333333 if (proc_rank == 0 ) then
334- if (any (Re_size > 0 ) ) then
334+ if (viscous ) then
335335 write (1 , ' (6X,I8,F10.6,6X,6X,F10.6,6X,F9.6,6X,F9.6,6X,F10.6)' ) &
336336 t_step, dt, t_step* dt, icfl_max_glb, &
337337 vcfl_max_glb, &
@@ -348,7 +348,7 @@ contains
348348 call s_mpi_abort(' ICFL is greater than 1.0. Exiting ...' )
349349 end if
350350
351- if (any (Re_size > 0 ) ) then
351+ if (viscous ) then
352352 if (vcfl_max_glb /= vcfl_max_glb) then
353353 call s_mpi_abort(' VCFL is NaN. Exiting ...' )
354354 elseif (vcfl_max_glb > 1d0 ) then
@@ -1578,8 +1578,8 @@ contains
15781578 write (3 , ' (A)' ) ' '
15791579
15801580 write (3 , ' (A,F9.6)' ) ' ICFL Max: ' , icfl_max
1581- if (any (Re_size > 0 ) ) write (3 , ' (A,F9.6)' ) ' VCFL Max: ' , vcfl_max
1582- if (any (Re_size > 0 ) ) write (3 , ' (A,F10.6)' ) ' Rc Min: ' , Rc_min
1581+ if (viscous ) write (3 , ' (A,F9.6)' ) ' VCFL Max: ' , vcfl_max
1582+ if (viscous ) write (3 , ' (A,F10.6)' ) ' Rc Min: ' , Rc_min
15831583
15841584 call cpu_time(run_time)
15851585
@@ -1615,7 +1615,7 @@ contains
16151615 @:ALLOCATE_GLOBAL(icfl_sf(0 :m, 0 :n, 0 :p))
16161616 icfl_max = 0d0
16171617
1618- if (any (Re_size > 0 ) ) then
1618+ if (viscous ) then
16191619 @:ALLOCATE_GLOBAL(vcfl_sf(0 :m, 0 :n, 0 :p))
16201620 @:ALLOCATE_GLOBAL(Rc_sf (0 :m, 0 :n, 0 :p))
16211621
@@ -1652,7 +1652,7 @@ contains
16521652
16531653 ! Deallocating the ICFL, VCFL, CCFL, and Rc stability criteria
16541654 @:DEALLOCATE_GLOBAL(icfl_sf)
1655- if (any (Re_size > 0 ) ) then
1655+ if (viscous ) then
16561656 @:DEALLOCATE_GLOBAL(vcfl_sf, Rc_sf)
16571657 end if
16581658
0 commit comments