Skip to content

Commit 01fd1b6

Browse files
committed
Apply ffmt: remove blanks after #ifdef, fix Fypp continuation alignment
1 parent 49353ad commit 01fd1b6

27 files changed

Lines changed: 89 additions & 137 deletions

src/common/m_checker_common.fpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ contains
3232
end subroutine s_check_inputs_common
3333

3434
#ifndef MFC_SIMULATION
35-
3635
!> @brief Verifies that the total number of grid cells meets the minimum required by the number of dimensions and MPI ranks.
3736
impure subroutine s_check_total_cells
3837

src/common/m_chemistry.fpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,10 @@ contains
195195
if (chem_params%transport_model == 1) then
196196
! Note: Added 'i' and 'eqn' to private list.
197197
$:GPU_PARALLEL_LOOP(collapse=3, private='[x, y, z, i, eqn, Ys_L, Ys_R, Ys_cell, Xs_L, Xs_R, &
198-
& mass_diffusivities_mixavg1, mass_diffusivities_mixavg2, mass_diffusivities_mixavg_Cell, h_l, &
199-
& h_r, Xs_cell, h_k, dXk_dxi, Mass_Diffu_Flux, Mass_Diffu_Energy, MW_L, MW_R, MW_cell, Rgas_L, &
200-
& Rgas_R, T_L, T_R, P_L, P_R, rho_L, rho_R, rho_cell, rho_Vic, lambda_L, lambda_R, &
201-
& lambda_Cell, &
202-
& dT_dxi, grid_spacing]', copyin='[offsets]')
198+
& mass_diffusivities_mixavg1, mass_diffusivities_mixavg2, mass_diffusivities_mixavg_Cell, &
199+
& h_l, h_r, Xs_cell, h_k, dXk_dxi, Mass_Diffu_Flux, Mass_Diffu_Energy, MW_L, MW_R, MW_cell, &
200+
& Rgas_L, Rgas_R, T_L, T_R, P_L, P_R, rho_L, rho_R, rho_cell, rho_Vic, lambda_L, lambda_R, &
201+
& lambda_Cell, dT_dxi, grid_spacing]', copyin='[offsets]')
203202
do z = isc3%beg, isc3%end
204203
do y = isc2%beg, isc2%end
205204
do x = isc1%beg, isc1%end

src/common/m_model.fpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,6 @@ contains
10041004
end subroutine s_distance_normals_2D
10051005

10061006
#ifdef MFC_SIMULATION
1007-
10081007
subroutine s_instantiate_STL_models()
10091008

10101009
! Variables for IBM+STL

src/common/m_mpi_common.fpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ contains
119119
integer, dimension(1) :: airfoil_glb, airfoil_loc, airfoil_start
120120

121121
#ifdef MFC_MPI
122-
123122
! Generic loop iterator
124123
integer :: i, j
125124
integer :: ierr !< Generic flag used to identify and report MPI errors
@@ -202,7 +201,6 @@ contains
202201
integer, dimension(3) :: sf_start_idx
203202

204203
#ifdef MFC_MPI
205-
206204
! Generic loop iterator
207205
integer :: i, j, q, k, l, m_ds, n_ds, p_ds, ierr
208206

@@ -989,7 +987,6 @@ contains
989987
subroutine s_mpi_decompose_computational_domain
990988

991989
#ifdef MFC_MPI
992-
993990
integer :: num_procs_x, num_procs_y, num_procs_z !< Optimal number of processors in the x-, y- and z-directions
994991
!> Non-optimal number of processors in the x-, y- and z-directions
995992
real(wp) :: tmp_num_procs_x, tmp_num_procs_y, tmp_num_procs_z

src/common/m_nvtx.f90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ module m_nvtx
2828
end type nvtxEventAttributes
2929

3030
#if defined(MFC_GPU) && defined(__PGI)
31-
3231
interface nvtxRangePush
3332
! push range with custom label and standard color
3433
subroutine nvtxRangePushA(name) bind(C, name='nvtxRangePushA')

src/common/m_phase_change.fpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
module m_phase_change
1010

1111
#ifndef MFC_POST_PROCESS
12-
1312
use m_derived_types !< Definitions of the derived types
1413
use m_global_parameters !< Definitions of the global parameters
1514
use m_mpi_proxy !< Message passing interface (MPI) module proxy
@@ -100,8 +99,8 @@ contains
10099

101100
! starting equilibrium solver
102101

103-
$:GPU_PARALLEL_LOOP(collapse=3, private='[i, j, k, l, p_infOV, p_infpT, p_infSL, sk, hk, gk, ek, rhok, pS, pSOV, pSSL, TS, &
104-
& TSOV, TSatOV, TSatSL, TSSL, rhoe, dynE, rhos, rho, rM, m1, m2, MCT, TvF]')
102+
$:GPU_PARALLEL_LOOP(collapse=3, private='[i, j, k, l, p_infOV, p_infpT, p_infSL, sk, hk, gk, ek, rhok, pS, pSOV, pSSL, &
103+
& TS, TSOV, TSatOV, TSatSL, TSSL, rhoe, dynE, rhos, rho, rM, m1, m2, MCT, TvF]')
105104
do j = 0, m
106105
do k = 0, n
107106
do l = 0, p

src/common/m_variables_conversion.fpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,6 @@ contains
384384
$:GPU_UPDATE(device='[gammas, gs_min, pi_infs, ps_inf, cvs, qvs, qvps, Gs_vc]')
385385

386386
#ifdef MFC_SIMULATION
387-
388387
if (viscous) then
389388
@:ALLOCATE(Res_vc(1:2, 1:Re_size_max))
390389
do i = 1, 2

src/post_process/m_data_input.f90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ impure subroutine s_read_parallel_data_files(t_step)
288288
integer, intent(in) :: t_step
289289

290290
#ifdef MFC_MPI
291-
292291
real(wp), allocatable, dimension(:) :: x_cb_glb, y_cb_glb, z_cb_glb
293292
integer :: ifile, ierr, data_size, filetype, stride
294293
integer, dimension(MPI_STATUS_SIZE) :: status

src/post_process/m_global_parameters.fpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ module m_global_parameters
161161
integer, allocatable, dimension(:) :: start_idx !< Starting cell-center index of local processor in global grid
162162
integer :: num_ibs !< Number of immersed boundaries
163163
#ifdef MFC_MPI
164-
165164
type(mpi_io_var), public :: MPI_IO_DATA
166165
type(mpi_io_ib_var), public :: MPI_IO_IB_DATA
167166
type(mpi_io_levelset_var), public :: MPI_IO_levelset_DATA
@@ -934,7 +933,6 @@ contains
934933
if (parallel_io .neqv. .true.) return
935934

936935
#ifdef MFC_MPI
937-
938936
! Option for Lustre file system (Darter/Comet/Stampede)
939937
write (mpiiofs, '(A)') '/lustre_'
940938
mpiiofs = trim(mpiiofs)
@@ -975,7 +973,6 @@ contains
975973
deallocate (adv)
976974

977975
#ifdef MFC_MPI
978-
979976
if (parallel_io) then
980977
deallocate (start_idx)
981978
do i = 1, sys_size

src/post_process/m_mpi_proxy.fpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ contains
2929
impure subroutine s_initialize_mpi_proxy_module
3030

3131
#ifdef MFC_MPI
32-
3332
integer :: i !< Generic loop iterator
3433
integer :: ierr !< Generic flag used to identify and report MPI errors
3534
! Allocating and configuring the receive counts and the displacement vector variables used in variable-gather communication
@@ -315,7 +314,6 @@ contains
315314
impure subroutine s_finalize_mpi_proxy_module
316315
317316
#ifdef MFC_MPI
318-
319317
! Deallocating the receive counts and the displacement vector variables used in variable-gather communication procedures
320318
if ((format == 1 .and. n > 0) .or. n == 0) then
321319
deallocate (recvcounts)

0 commit comments

Comments
 (0)