Skip to content

Commit 07ebfba

Browse files
committed
Fix incorrect and misleading comments across src/
1 parent 1f38337 commit 07ebfba

7 files changed

Lines changed: 10 additions & 11 deletions

File tree

src/common/m_derived_types.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ module m_derived_types
303303
real(wp), dimension(6) :: tau_e !< Elastic stresses added to primitive variables if hypoelasticity = True
304304
real(wp) :: R0 !< Bubble size
305305
real(wp) :: V0 !< Bubble velocity
306-
real(wp) :: p0 !< Bubble size
307-
real(wp) :: m0 !< Bubble velocity
306+
real(wp) :: p0 !< Bubble pressure
307+
real(wp) :: m0 !< Bubble mass
308308
integer :: hcid !< Hardcoded initial condition ID
309309
real(wp) :: cf_val !< Color function value
310310
real(wp) :: Y(1:num_species) !< Species mass fractions

src/common/m_helper.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ contains
521521
elemental function double_factorial(n_in) result(R_result)
522522
523523
integer, intent(in) :: n_in
524-
integer, parameter :: int64_kind = selected_int_kind(18) !< 18 bytes for 64-bit integer
524+
integer, parameter :: int64_kind = selected_int_kind(18) !< kind holding >= 18 decimal digits (64-bit integer)
525525
integer(kind=int64_kind) :: R_result
526526
integer :: i
527527
@@ -533,7 +533,7 @@ contains
533533
elemental function factorial(n_in) result(R_result)
534534
535535
integer, intent(in) :: n_in
536-
integer, parameter :: int64_kind = selected_int_kind(18) !< 18 bytes for 64-bit integer
536+
integer, parameter :: int64_kind = selected_int_kind(18) !< kind holding >= 18 decimal digits (64-bit integer)
537537
integer(kind=int64_kind) :: R_result
538538
integer :: i
539539

src/common/m_mpi_common.fpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ contains
3939
impure subroutine s_initialize_mpi_common_module
4040

4141
#ifdef MFC_MPI
42-
! Allocating buff_send/recv and. Please note that for the sake of simplicity, both variables are provided sufficient storage
42+
! Allocating buff_send/recv. Please note that for the sake of simplicity, both variables are provided sufficient storage
4343
! to hold the largest buffer in the computational domain.
4444

4545
if (qbmm .and. .not. polytropic) then
@@ -426,7 +426,6 @@ contains
426426
end subroutine s_mpi_reduce_min
427427

428428
!> Reduce a 2-element variable to its global maximum value with the owning processor rank (MPI_MAXLOC).
429-
!> Reduce a local value to its global maximum with location (rank) across all ranks
430429
impure subroutine s_mpi_reduce_maxloc(var_loc)
431430

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

src/common/m_precision_select.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module m_precision_select
1313
implicit none
1414

1515
! Define the available precision types
16-
integer, parameter :: half_precision = 2 !< selected_real_kind(3, 4)
16+
integer, parameter :: half_precision = 2 !< hardcoded half-precision kind (approx. selected_real_kind(3, 4))
1717
integer, parameter :: single_precision = selected_real_kind(6, 37)
1818
integer, parameter :: double_precision = selected_real_kind(15, 307)
1919
integer, parameter :: hp = half_precision

src/simulation/m_collisions.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
#:include 'macros.fpp'
66

7-
!> @brief Ghost-node immersed boundary method: locates ghost/image points, computes interpolation coefficients, and corrects the
8-
!! flow state
7+
!> @brief Immersed-boundary collision handling: detects IB-IB and IB-wall contacts and applies soft-sphere collision forces and
8+
!! torques
99
module m_collisions
1010

1111
use m_derived_types !< Definitions of the derived types

src/simulation/m_data_output.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module m_data_output
4545
!> @{
4646
real(wp) :: icfl_max !< ICFL criterion maximum
4747
real(wp) :: vcfl_max !< VCFL criterion maximum
48-
real(wp) :: Rc_min !< Rc criterion maximum
48+
real(wp) :: Rc_min !< Rc criterion minimum
4949
!> @}
5050

5151
type(scalar_field), allocatable, dimension(:) :: q_cons_temp_ds

src/simulation/m_riemann_solver_hllc.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ contains
136136
#:set SV = STENCIL_VAR
137137
#:set SF = lambda offs: COORDS.format(STENCIL_IDX = SV + offs)
138138
if (norm_dir == ${NORM_DIR}$) then
139-
! 6-EQUATION MODEL WITH HLLC HLLC star-state flux with contact wave speed s_S
139+
! 6-EQUATION MODEL WITH HLLC star-state flux with contact wave speed s_S
140140
if (model_eqns == model_eqns_6eq) then
141141
! 6-equation model (model_eqns=3): separate phasic internal energies
142142
$:GPU_PARALLEL_LOOP(collapse=3, private='[i, j, k, l, q, vel_L, vel_R, Re_L, Re_R, alpha_L, alpha_R, Ys_L, &

0 commit comments

Comments
 (0)