44
55#:include ' case.fpp'
66
7- !> Defines global parameters for the computational domain, simulation algorithm, and initial conditions
7+ !> @brief Defines global parameters for the computational domain, simulation algorithm, and initial conditions
88module m_global_parameters
99
1010#ifdef MFC_MPI
@@ -112,32 +112,31 @@ module m_global_parameters
112112 ! Cell Indices for the entire (local) domain. In simulation and post_process, this includes the buffer region. idwbuff and
113113 ! idwint are the same otherwise. Stands for " InDices With BUFFer" .
114114 type(int_bounds_info) :: idwbuff(1 :3 )
115-
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 )
115+ integer :: fd_order !< Finite- difference order for CoM/ probe derivative approximations
116+ integer :: fd_number !< FD half- stencil size: MAX (1 , fd_order/ 2 )
118117
119118 !> @name lagrangian subgrid bubble parameters
120119 !> @{!
121120 type(bubbles_lagrange_parameters) :: lag_params !< Lagrange bubbles' parameters
122121 !> @}
123122
124- type(int_bounds_info) :: bc_x, bc_y, bc_z !< Boundary conditions in the x-, y- and z-coordinate directions
125- integer :: shear_num !< Number of shear stress components
126- integer, dimension(3) :: shear_indices !< Indices of the stress components that represent shear stress
127- integer :: shear_BC_flip_num !< Number of shear stress components to reflect for boundary conditions
128- integer, dimension(3, 2) :: shear_BC_flip_indices !< Shear stress BC reflection indices (1:3, 1:shear_BC_flip_num)
129- logical :: parallel_io !< Format of the data files
130- logical :: file_per_process !< type of data output
131- integer :: precision !< Precision of output files
132- logical :: down_sample !< Down-sample the output data
133- logical :: mixlayer_vel_profile !< Set hyperbolic tangent streamwise velocity profile
134- real(wp) :: mixlayer_vel_coef !< Coefficient for the hyperbolic tangent streamwise velocity profile
135- logical :: mixlayer_perturb !< Superimpose instability waves to surrounding fluid flow
136- integer :: mixlayer_perturb_nk !< Number of Fourier modes for perturbation with mixlayer_perturb flag
137- real(wp) :: mixlayer_perturb_k0 !< Peak wavenumber for mixlayer perturbation (default: most unstable mode)
123+ type(int_bounds_info) :: bc_x, bc_y, bc_z !< Boundary conditions in the x-, y- and z-coordinate directions
124+ integer :: shear_num !< Number of shear stress components
125+ integer, dimension(3) :: shear_indices !< Indices of the stress components that represent shear stress
126+ integer :: shear_BC_flip_num !< Number of shear stress components to reflect for boundary conditions
127+ integer, dimension(3, 2) :: shear_BC_flip_indices !< Shear stress BC reflection indices (1:3, 1:shear_BC_flip_num)
128+ logical :: parallel_io !< Format of the data files
129+ logical :: file_per_process !< type of data output
130+ integer :: precision !< Precision of output files
131+ logical :: down_sample !< Down-sample the output data
132+ logical :: mixlayer_vel_profile !< Set hyperbolic tangent streamwise velocity profile
133+ real(wp) :: mixlayer_vel_coef !< Coefficient for the hyperbolic tangent streamwise velocity profile
134+ logical :: mixlayer_perturb !< Superimpose instability waves to surrounding fluid flow
135+ integer :: mixlayer_perturb_nk !< Number of Fourier modes for perturbation with mixlayer_perturb flag
136+ real(wp) :: mixlayer_perturb_k0 !< Peak wavenumber for mixlayer perturbation (default: most unstable mode)
138137 logical :: simplex_perturb
139138 type(simplex_noise_params) :: simplex_params
140- real(wp) :: pi_fac !< Factor for artificial pi_inf
139+ real(wp) :: pi_fac !< Factor for artificial pi_inf
141140 logical :: viscous
142141 logical :: bubbles_lagrange
143142
@@ -152,9 +151,8 @@ module m_global_parameters
152151 integer :: elliptic_smoothing_iters
153152 integer, allocatable, dimension(:) :: proc_coords !< Processor coordinates in MPI_CART_COMM
154153 type(int_bounds_info), dimension(3) :: nidx
155- integer, allocatable, dimension(:,:,:) :: neighbor_ranks !< Neighbor ranks
156-
157- integer, allocatable, dimension(:) :: start_idx !< Starting cell-center index of local processor in global grid
154+ integer, allocatable, dimension(:,:,:) :: neighbor_ranks !< Neighbor ranks
155+ integer, allocatable, dimension(:) :: start_idx !< Starting cell-center index of local processor in global grid
158156
159157#ifdef MFC_MPI
160158 type(mpi_io_var), public :: MPI_IO_DATA
@@ -164,12 +162,10 @@ module m_global_parameters
164162
165163 ! Initial Condition Parameters
166164 integer :: num_patches !< Number of patches composing initial condition
167-
168- type(ic_patch_parameters), dimension(num_patches_max) :: patch_icpp !< IC patch parameters (max: num_patches_max)
169- integer :: num_bc_patches !< Number of boundary condition patches
170- logical :: bc_io !< whether or not to save BC data
165+ type(ic_patch_parameters), dimension(num_patches_max) :: patch_icpp !< IC patch parameters (max: num_patches_max)
166+ integer :: num_bc_patches !< Number of boundary condition patches
167+ logical :: bc_io !< whether or not to save BC data
171168 type(bc_patch_parameters), dimension(num_bc_patches_max) :: patch_bc !< BC patch parameters
172-
173169 type(physical_parameters), dimension(num_fluids_max) :: fluid_pp !< Stiffened gas EOS parameters and Reynolds numbers per fluid
174170
175171 ! Subgrid Bubble Parameters
@@ -233,11 +229,10 @@ module m_global_parameters
233229 integer, allocatable, dimension(:,:,:) :: logic_grid
234230 type(pres_field) :: pb
235231 type(pres_field) :: mv
236- real(wp) :: Bx0 !< Constant magnetic field in the x-direction (1D)
237-
238- integer :: buff_size !< Number of ghost cells for boundary condition storage
239- logical :: fft_wrt
240- logical :: dummy !< AMDFlang workaround for case-optimization + GPU-kernel bug
232+ real(wp) :: Bx0 !< Constant magnetic field in the x-direction (1D)
233+ integer :: buff_size !< Number of ghost cells for boundary condition storage
234+ logical :: fft_wrt
235+ logical :: dummy !< AMDFlang workaround for case-optimization + GPU-kernel bug
241236
242237 ! Variables for hardcoded initial conditions that are read from input files
243238 character(LEN=2*path_len) :: interface_file
0 commit comments