Skip to content

Commit 6a095ea

Browse files
committed
Add missing subroutine headers; fix orphan !!, !!IB markers, !!> syntax
1 parent 17b6fdd commit 6a095ea

25 files changed

Lines changed: 71 additions & 72 deletions

src/common/m_derived_types.fpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,12 @@ module m_derived_types
237237
real(wp) :: p0 !< Bubble size
238238
real(wp) :: m0 !< Bubble velocity
239239
integer :: hcid
240-
!! id for hard coded initial condition
240+
! id for hard coded initial condition
241241

242242
real(wp) :: cf_val !! color function value
243243
real(wp) :: Y(1:num_species)
244244

245-
!! STL or OBJ model input parameter
245+
! STL or OBJ model input parameter
246246
character(LEN=pathlen_max) :: model_filepath !< Path the STL file relative to case_dir.
247247
real(wp), dimension(1:3) :: model_translate !< Translation of the STL object.
248248
real(wp), dimension(1:3) :: model_scale !< Scale factor for the STL object.
@@ -271,7 +271,7 @@ module m_derived_types
271271
real(wp) :: theta
272272
logical :: slip
273273

274-
!! STL or OBJ model input parameter
274+
! STL or OBJ model input parameter
275275
character(LEN=pathlen_max) :: model_filepath !< Path the STL file relative to case_dir.
276276
real(wp), dimension(1:3) :: model_translate !< Translation of the STL object.
277277
real(wp), dimension(1:3) :: model_scale !< Scale factor for the STL object.

src/common/m_finite_differences.fpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module m_finite_differences
1313

1414
contains
1515

16+
!> Accumulate the finite-difference divergence of a vector field onto a scalar field.
1617
subroutine s_compute_fd_divergence(div, fields, ix_s, iy_s, iz_s)
1718

1819
type(scalar_field), intent(inout) :: div

src/common/m_helper_basic.fpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ contains
9898

9999
end function f_is_integer
100100

101+
!> Compute ghost-cell buffer size and set interior/buffered coordinate index bounds.
101102
subroutine s_configure_coordinate_bounds(recon_type, weno_polyn, muscl_polyn, igr_order, buff_size, idwint, idwbuff, viscous, &
102103

103104
& bubbles_lagrange, m, n, p, num_dims, igr, ib)

src/common/m_model.fpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ module m_model
2828
public :: s_instantiate_STL_models
2929
#endif
3030

31-
!! array of STL models that can be allocated and then used in IB marker and levelset compute
31+
! array of STL models that can be allocated and then used in IB marker and levelset compute
3232
type(t_model_array), allocatable, target :: models(:)
33-
!! GPU-friendly flat arrays for STL model data
33+
! GPU-friendly flat arrays for STL model data
3434
integer, allocatable :: gpu_ntrs(:)
3535
real(wp), allocatable, dimension(:,:,:,:) :: gpu_trs_v
3636
real(wp), allocatable, dimension(:,:,:) :: gpu_trs_n
@@ -414,6 +414,7 @@ contains
414414

415415
end subroutine s_model_free
416416

417+
!> Read the next non-blank, non-comment line from an STL or OBJ model file.
417418
impure function f_read_line(iunit, line) result(bIsLine)
418419

419420
integer, intent(in) :: iunit
@@ -964,6 +965,7 @@ contains
964965
end subroutine s_distance_normals_2D
965966

966967
#ifdef MFC_SIMULATION
968+
!> Load, transform, and register STL/OBJ immersed-boundary models onto the simulation grid.
967969
subroutine s_instantiate_STL_models()
968970

969971
! Variables for IBM+STL
@@ -1126,6 +1128,7 @@ contains
11261128
end subroutine s_instantiate_STL_models
11271129
#endif
11281130

1131+
!> Pack triangle vertices and normals from a model into flat arrays for GPU transfer.
11291132
subroutine s_pack_model_for_gpu(ma)
11301133

11311134
type(t_model_array), intent(inout) :: ma

src/common/m_mpi_common.fpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module m_mpi_common
2222

2323
integer, private :: v_size
2424
$:GPU_DECLARE(create='[v_size]')
25-
!! Generic flags used to identify and report MPI errors
25+
! Generic flags used to identify and report MPI errors
2626

2727
!> This variable is utilized to pack and send the buffer of the cell-average primitive variables, for a single computational
2828
!! domain boundary at the time, to the relevant neighboring processor.
@@ -99,6 +99,7 @@ contains
9999

100100
end subroutine s_mpi_initialize
101101

102+
!> Set up MPI I/O data views and variable pointers for parallel file output.
102103
impure subroutine s_initialize_mpi_data(q_cons_vf, ib_markers, beta)
103104

104105
type(scalar_field), dimension(sys_size), intent(in) :: q_cons_vf
@@ -180,6 +181,7 @@ contains
180181

181182
end subroutine s_initialize_mpi_data
182183

184+
!> Set up MPI I/O data views for downsampled (coarsened) parallel file output.
183185
subroutine s_initialize_mpi_data_ds(q_cons_vf)
184186

185187
type(scalar_field), dimension(sys_size), intent(in) :: q_cons_vf
@@ -401,9 +403,7 @@ contains
401403

402404
end subroutine s_mpi_allreduce_max
403405

404-
!> Reduce a local real value to its global minimum and broadcast the result to all ranks.
405-
! ! @param var_loc holds the local value to be reduced among all the processors in communicator. On output, the variable holds
406-
! the minimum value, reduced amongst all of the local values.
406+
!> Reduce a local real value to its global minimum across all ranks
407407
impure subroutine s_mpi_reduce_min(var_loc)
408408

409409
real(wp), intent(inout) :: var_loc
@@ -422,9 +422,7 @@ contains
422422
end subroutine s_mpi_reduce_min
423423

424424
!> Reduce a 2-element variable to its global maximum value with the owning processor rank (MPI_MAXLOC).
425-
! ! @param var_loc On input, this variable holds the local value and processor rank, which are to be reduced among all the
426-
! processors in communicator. On output, this variable holds the maximum value, reduced amongst all of the local values, and the
427-
! process rank to which the value belongs.
425+
!> Reduce a local value to its global maximum with location (rank) across all ranks
428426
impure subroutine s_mpi_reduce_maxloc(var_loc)
429427

430428
real(wp), dimension(2), intent(inout) :: var_loc

src/common/m_variables_conversion.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module m_variables_conversion
3737
#endif
3838
s_finalize_variables_conversion_module
3939

40-
!! In simulation, gammas, pi_infs, and qvs are already declared in m_global_variables
40+
! In simulation, gammas, pi_infs, and qvs are already declared in m_global_variables
4141
#ifndef MFC_SIMULATION
4242
real(wp), allocatable, public, dimension(:) :: gammas, gs_min, pi_infs, ps_inf, cvs, qvs, qvps
4343
$:GPU_DECLARE(create='[gammas, gs_min, pi_infs, ps_inf, cvs, qvs, qvps]')

src/post_process/m_data_output.fpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,7 @@ contains
11141114
11151115
end subroutine s_write_lag_variable_to_formatted_database_file
11161116
1117+
!> Convert the binary immersed-boundary state file to per-body formatted text files
11171118
impure subroutine s_write_ib_state_files()
11181119
11191120
character(len=len_trim(case_dir) + 4*name_len) :: in_file, out_file, file_loc

src/post_process/m_mpi_proxy.fpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,7 @@ contains
138138

139139
end subroutine s_mpi_bcast_user_inputs
140140

141-
!> Gather the Silo database metadata for the spatial extents to boost the performance of the multidimensional visualization.
142-
! ! @param spatial_extents Spatial extents for each processor's sub-domain. First dimension corresponds to the minimum and
143-
! maximum values, respectively, while the second dimension corresponds to the processor rank.
141+
!> Gather spatial extents from all ranks for Silo database metadata
144142
impure subroutine s_mpi_gather_spatial_extents(spatial_extents)
145143

146144
real(wp), dimension(1:, 0:), intent(inout) :: spatial_extents

src/post_process/m_start_up.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ contains
725725
end if
726726
727727
if (bubbles_lagrange) then
728-
!! Void fraction field
728+
! Void fraction field
729729
q_sf(:,:,:) = 1._wp - q_cons_vf(beta_idx)%sf(-offset_x%beg:m + offset_x%end, -offset_y%beg:n + offset_y%end, &
730730
& -offset_z%beg:p + offset_z%end)
731731
write (varname, '(A)') 'voidFraction'

src/pre_process/m_check_ib_patches.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ contains
209209

210210
end subroutine s_check_model_ib_patch_geometry
211211

212-
!!> This subroutine verifies that the geometric parameters of
213-
!! the inactive patch remain unaltered by the user inputs. @param patch_id Patch identifier
212+
!> This subroutine verifies that the geometric parameters of the inactive patch remain unaltered by the user inputs.
213+
!! @param patch_id Patch identifier
214214
impure subroutine s_check_inactive_ib_patch_geometry(patch_id)
215215

216216
integer, intent(in) :: patch_id

0 commit comments

Comments
 (0)