Skip to content

Commit 3cb6462

Browse files
committed
comment cleanup
1 parent cf431a3 commit 3cb6462

8 files changed

Lines changed: 128 additions & 371 deletions

File tree

src/common/m_boundary_common.fpp

Lines changed: 67 additions & 80 deletions
Large diffs are not rendered by default.

src/pre_process/m_global_parameters.fpp

Lines changed: 10 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
!>
22
!! @file
3-
!! @brief Contains module m_global_parameters
3+
!! Contains module m_global_parameters
44

55
#:include 'case.fpp'
66

7-
!> @brief Defines global parameters for the computational domain, simulation algorithm, and initial conditions
7+
!> Defines global parameters for the computational domain, simulation algorithm, and initial conditions
88
module m_global_parameters
99

1010
#ifdef MFC_MPI
@@ -113,13 +113,8 @@ module m_global_parameters
113113
! idwint are the same otherwise. Stands for "InDices With BUFFer".
114114
type(int_bounds_info) :: idwbuff(1:3)
115115

116-
!> The order of the finite-difference (fd) approximations of the first-order derivatives that need to be evaluated when the CoM
117-
!! or flow probe data files are to be written at each time step
118-
integer :: fd_order
119-
120-
!> The finite-difference number is given by MAX(1, fd_order/2). Essentially, it is a measure of the half-size of the
121-
!! finite-difference stencil for the selected order of accuracy.
122-
integer :: fd_number
116+
integer :: fd_order !< Finite-difference order for CoM/probe derivative approximations
117+
integer :: fd_number !< FD half-stencil size: MAX(1, fd_order/2)
123118

124119
!> @name lagrangian subgrid bubble parameters
125120
!> @{!
@@ -130,8 +125,6 @@ module m_global_parameters
130125
integer :: shear_num !< Number of shear stress components
131126
integer, dimension(3) :: shear_indices !< Indices of the stress components that represent shear stress
132127
integer :: shear_BC_flip_num !< Number of shear stress components to reflect for boundary conditions
133-
!> Indices of shear stress components to reflect for boundary conditions. Size: (1:3, 1:shear_BC_flip_num) for (x/y/z,
134-
!! [indices])
135128
integer, dimension(3, 2) :: shear_BC_flip_indices !< Shear stress BC reflection indices (1:3, 1:shear_BC_flip_num)
136129
logical :: parallel_io !< Format of the data files
137130
logical :: file_per_process !< type of data output
@@ -141,8 +134,6 @@ module m_global_parameters
141134
real(wp) :: mixlayer_vel_coef !< Coefficient for the hyperbolic tangent streamwise velocity profile
142135
logical :: mixlayer_perturb !< Superimpose instability waves to surrounding fluid flow
143136
integer :: mixlayer_perturb_nk !< Number of Fourier modes for perturbation with mixlayer_perturb flag
144-
!> Peak wavenumber of prescribed energy spectra with mixlayer_perturb flag Default value (k0 = 0.4446) is most unstable mode
145-
!! obtained from linear stability analysis See Michalke (1964, JFM) for details
146137
real(wp) :: mixlayer_perturb_k0 !< Peak wavenumber for mixlayer perturbation (default: most unstable mode)
147138
logical :: simplex_perturb
148139
type(simplex_noise_params) :: simplex_params
@@ -161,8 +152,7 @@ module m_global_parameters
161152
integer :: elliptic_smoothing_iters
162153
integer, allocatable, dimension(:) :: proc_coords !< Processor coordinates in MPI_CART_COMM
163154
type(int_bounds_info), dimension(3) :: nidx
164-
integer, allocatable, dimension(:,:,:) :: neighbor_ranks
165-
!! Neighbor ranks
155+
integer, allocatable, dimension(:,:,:) :: neighbor_ranks !< Neighbor ranks
166156
167157
integer, allocatable, dimension(:) :: start_idx !< Starting cell-center index of local processor in global grid
168158
@@ -175,19 +165,11 @@ module m_global_parameters
175165
! Initial Condition Parameters
176166
integer :: num_patches !< Number of patches composing initial condition
177167
178-
!> Database of the initial condition patch parameters (icpp) for each of the patches employed in the configuration of the
179-
!! initial condition. Note that the maximum allowable number of patches, num_patches_max, may be changed in the module
180-
!! m_derived_types.f90.
181168
type(ic_patch_parameters), dimension(num_patches_max) :: patch_icpp !< IC patch parameters (max: num_patches_max)
182169
integer :: num_bc_patches !< Number of boundary condition patches
183170
logical :: bc_io !< whether or not to save BC data
184-
!> Boundary condition patch parameters Database of the boundary condition patch parameters for each of the patches employed in
185-
!! the configuration of the boundary conditions
186-
type(bc_patch_parameters), dimension(num_bc_patches_max) :: patch_bc
171+
type(bc_patch_parameters), dimension(num_bc_patches_max) :: patch_bc !< BC patch parameters
187172
188-
! Fluids Physical Parameters
189-
!> Database of the physical parameters of each of the fluids that is present in the flow. These include the stiffened gas
190-
!! equation of state parameters, and the Reynolds numbers.
191173
type(physical_parameters), dimension(num_fluids_max) :: fluid_pp !< Stiffened gas EOS parameters and Reynolds numbers per fluid
192174
193175
! Subgrid Bubble Parameters
@@ -213,9 +195,7 @@ module m_global_parameters
213195
integer :: Np
214196
type(ib_patch_parameters), dimension(num_patches_max) :: patch_ib !< Immersed boundary patch parameters
215197
type(vec3_dt), allocatable, dimension(:) :: airfoil_grid_u, airfoil_grid_l
216-
!! Database of the immersed boundary patch parameters for each of the patches employed in the configuration of the initial
217-
!! condition. Note that the maximum allowable number of patches, num_patches_max, may be changed in the module
218-
!! m_derived_types.f90.
198+
! IB patch parameters database (max count: num_patches_max in m_derived_types.f90).
219199
!> @}
220200
221201
!> @name Non-polytropic bubble gas compression
@@ -255,12 +235,8 @@ module m_global_parameters
255235
type(pres_field) :: mv
256236
real(wp) :: Bx0 !< Constant magnetic field in the x-direction (1D)
257237
258-
!> The number of cells that are necessary to be able to store enough boundary conditions data to march the solution in the
259-
!! physical computational domain to the next time-step.
260238
integer :: buff_size !< Number of ghost cells for boundary condition storage
261239
logical :: fft_wrt
262-
!> AMDFlang workaround: keep a dummy logical to avoid a compiler case-optimization bug when a parameter+GPU-kernel conditional
263-
!! is false
264240
logical :: dummy !< AMDFlang workaround for case-optimization + GPU-kernel bug
265241
266242
! Variables for hardcoded initial conditions that are read from input files
@@ -269,8 +245,7 @@ module m_global_parameters
269245
270246
contains
271247
272-
!> Assigns default values to user inputs prior to reading them in. This allows for an easier consistency check of these
273-
!! parameters once they are read from the input file.
248+
!> Assigns default values to user inputs prior to reading them in.
274249
impure subroutine s_assign_default_values_to_user_inputs
275250
276251
integer :: i !< Generic loop operator
@@ -944,7 +919,7 @@ contains
944919
945920
end subroutine s_initialize_global_parameters_module
946921
947-
!> @brief Configures MPI parallel I/O settings and allocates processor coordinate arrays.
922+
!> Configures MPI parallel I/O settings and allocates processor coordinate arrays.
948923
impure subroutine s_initialize_parallel_io
949924
950925
#ifdef MFC_MPI
@@ -978,7 +953,7 @@ contains
978953
979954
end subroutine s_initialize_parallel_io
980955
981-
!> @brief Deallocates all global grid, index, and equation-of-state parameter arrays.
956+
!> Deallocates all global grid, index, and equation-of-state parameter arrays.
982957
impure subroutine s_finalize_global_parameters_module
983958
984959
integer :: i

0 commit comments

Comments
 (0)