Skip to content

Commit eeece9b

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

26 files changed

Lines changed: 66 additions & 87 deletions

src/common/m_compile_specific.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ module m_compile_specific
1212

1313
contains
1414

15-
!> Creates a directory and all its parents if it does not exist
16-
!! @param dir_name Directory path
15+
!> Create a directory and all its parents if it does not exist
1716
impure subroutine s_create_directory(dir_name)
1817

1918
character(LEN=*), intent(in) :: dir_name

src/common/m_derived_types.fpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,11 @@ module m_derived_types
236236
real(wp) :: V0 !< Bubble velocity
237237
real(wp) :: p0 !< Bubble size
238238
real(wp) :: m0 !< Bubble velocity
239-
integer :: hcid
240-
!! id for hard coded initial condition
239+
integer :: hcid !< Hardcoded initial condition ID
240+
real(wp) :: cf_val !< Color function value
241+
real(wp) :: Y(1:num_species)
241242

242-
real(wp) :: cf_val !! color function value
243-
real(wp) :: Y(1:num_species)
244-
245-
!! STL or OBJ model input parameter
243+
! STL or OBJ model input parameter
246244
character(LEN=pathlen_max) :: model_filepath !< Path the STL file relative to case_dir.
247245
real(wp), dimension(1:3) :: model_translate !< Translation of the STL object.
248246
real(wp), dimension(1:3) :: model_scale !< Scale factor for the STL object.
@@ -271,7 +269,7 @@ module m_derived_types
271269
real(wp) :: theta
272270
logical :: slip
273271

274-
!! STL or OBJ model input parameter
272+
! STL or OBJ model input parameter
275273
character(LEN=pathlen_max) :: model_filepath !< Path the STL file relative to case_dir.
276274
real(wp), dimension(1:3) :: model_translate !< Translation of the STL object.
277275
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 & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ 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
32-
type(t_model_array), allocatable, target :: models(:)
33-
!! GPU-friendly flat arrays for STL model data
34-
integer, allocatable :: gpu_ntrs(:)
31+
type(t_model_array), allocatable, target :: models(:) !< STL/OBJ models for IB markers and levelset
32+
integer, allocatable :: gpu_ntrs(:) !< GPU-friendly flat arrays for STL model data
3533
real(wp), allocatable, dimension(:,:,:,:) :: gpu_trs_v
3634
real(wp), allocatable, dimension(:,:,:) :: gpu_trs_n
3735
real(wp), allocatable, dimension(:,:,:,:) :: gpu_boundary_v
@@ -414,6 +412,7 @@ contains
414412

415413
end subroutine s_model_free
416414

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

419418
integer, intent(in) :: iunit
@@ -964,6 +963,7 @@ contains
964963
end subroutine s_distance_normals_2D
965964

966965
#ifdef MFC_SIMULATION
966+
!> Load, transform, and register STL/OBJ immersed-boundary models onto the simulation grid.
967967
subroutine s_instantiate_STL_models()
968968

969969
! Variables for IBM+STL
@@ -1126,6 +1126,7 @@ contains
11261126
end subroutine s_instantiate_STL_models
11271127
#endif
11281128

1129+
!> Pack triangle vertices and normals from a model into flat arrays for GPU transfer.
11291130
subroutine s_pack_model_for_gpu(ma)
11301131

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

src/common/m_mpi_common.fpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ 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
2625

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

10099
end subroutine s_mpi_initialize
101100

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

104104
type(scalar_field), dimension(sys_size), intent(in) :: q_cons_vf
@@ -180,6 +180,7 @@ contains
180180

181181
end subroutine s_initialize_mpi_data
182182

183+
!> Set up MPI I/O data views for downsampled (coarsened) parallel file output.
183184
subroutine s_initialize_mpi_data_ds(q_cons_vf)
184185

185186
type(scalar_field), dimension(sys_size), intent(in) :: q_cons_vf
@@ -401,9 +402,7 @@ contains
401402

402403
end subroutine s_mpi_allreduce_max
403404

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.
405+
!> Reduce a local real value to its global minimum across all ranks
407406
impure subroutine s_mpi_reduce_min(var_loc)
408407

409408
real(wp), intent(inout) :: var_loc
@@ -422,9 +421,7 @@ contains
422421
end subroutine s_mpi_reduce_min
423422

424423
!> 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.
424+
!> Reduce a local value to its global maximum with location (rank) across all ranks
428425
impure subroutine s_mpi_reduce_maxloc(var_loc)
429426

430427
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'

0 commit comments

Comments
 (0)