@@ -52,6 +52,7 @@ module m_boundary_common
5252
5353contains
5454
55+ !> @brief Allocates and sets up boundary condition buffer arrays for all coordinate directions.
5556 impure subroutine s_initialize_boundary_common_module ()
5657
5758 integer :: i, j
@@ -296,6 +297,7 @@ contains
296297
297298 end subroutine s_populate_variables_buffers
298299
300+ !> @brief Fills ghost cells by copying the nearest boundary cell value along the specified direction.
299301 subroutine s_ghost_cell_extrapolation (q_prim_vf , bc_dir , bc_loc , k , l )
300302 $:GPU_ROUTINE(function_name= ' s_ghost_cell_extrapolation' , &
301303 & parallelism= ' [seq]' , cray_inline= True)
@@ -357,6 +359,7 @@ contains
357359
358360 end subroutine s_ghost_cell_extrapolation
359361
362+ !> @brief Applies reflective (symmetry) boundary conditions by mirroring primitive variables and flipping the normal velocity component.
360363 subroutine s_symmetry (q_prim_vf , bc_dir , bc_loc , k , l , pb_in , mv_in )
361364 $:GPU_ROUTINE(parallelism= ' [seq]' )
362365 type(scalar_field), dimension (sys_size), intent (inout ) :: q_prim_vf
@@ -617,6 +620,7 @@ contains
617620
618621 end subroutine s_symmetry
619622
623+ !> @brief Applies periodic boundary conditions by copying values from the opposite domain boundary.
620624 subroutine s_periodic (q_prim_vf , bc_dir , bc_loc , k , l , pb_in , mv_in )
621625 $:GPU_ROUTINE(parallelism= ' [seq]' )
622626 type(scalar_field), dimension (sys_size), intent (inout ) :: q_prim_vf
@@ -756,6 +760,7 @@ contains
756760
757761 end subroutine s_periodic
758762
763+ !> @brief Applies axis boundary conditions for cylindrical coordinates by reflecting values across the axis with azimuthal phase shift.
759764 subroutine s_axis (q_prim_vf , pb_in , mv_in , k , l )
760765 $:GPU_ROUTINE(parallelism= ' [seq]' )
761766 type(scalar_field), dimension (sys_size), intent (inout ) :: q_prim_vf
@@ -815,6 +820,7 @@ contains
815820
816821 end subroutine s_axis
817822
823+ !> @brief Applies slip wall boundary conditions by extrapolating scalars and reflecting the wall- normal velocity component.
818824 subroutine s_slip_wall (q_prim_vf , bc_dir , bc_loc , k , l )
819825 $:GPU_ROUTINE(function_name= ' s_slip_wall' ,parallelism= ' [seq]' , &
820826 & cray_inline= True)
@@ -906,6 +912,7 @@ contains
906912
907913 end subroutine s_slip_wall
908914
915+ !> @brief Applies no- slip wall boundary conditions by reflecting and negating all velocity components at the wall.
909916 subroutine s_no_slip_wall (q_prim_vf , bc_dir , bc_loc , k , l )
910917 $:GPU_ROUTINE(function_name= ' s_no_slip_wall' ,parallelism= ' [seq]' , &
911918 & cray_inline= True)
@@ -1034,6 +1041,7 @@ contains
10341041
10351042 end subroutine s_no_slip_wall
10361043
1044+ !> @brief Applies Dirichlet boundary conditions by prescribing ghost cell values from stored boundary buffers.
10371045 subroutine s_dirichlet (q_prim_vf , bc_dir , bc_loc , k , l )
10381046 $:GPU_ROUTINE(function_name= ' s_dirichlet' ,parallelism= ' [seq]' , &
10391047 & cray_inline= True)
@@ -1103,6 +1111,7 @@ contains
11031111
11041112 end subroutine s_dirichlet
11051113
1114+ !> @brief Extrapolates QBMM bubble pressure and mass- vapor variables into ghost cells by copying boundary values.
11061115 subroutine s_qbmm_extrapolation (bc_dir , bc_loc , k , l , pb_in , mv_in )
11071116 $:GPU_ROUTINE(parallelism= ' [seq]' )
11081117 real (stp), optional, dimension (idwbuff(1 )%beg:, idwbuff(2 )%beg:, idwbuff(3 )%beg:, 1 :, 1 :), intent (inout ) :: pb_in, mv_in
@@ -1175,6 +1184,7 @@ contains
11751184
11761185 end subroutine s_qbmm_extrapolation
11771186
1187+ !> @brief Populates ghost cell buffers for the color function and its divergence used in capillary surface tension.
11781188 impure subroutine s_populate_capillary_buffers (c_divs , bc_type )
11791189
11801190 type(scalar_field), dimension (num_dims + 1 ), intent (inout ) :: c_divs
@@ -1310,6 +1320,7 @@ contains
13101320 #:endif
13111321 end subroutine s_populate_capillary_buffers
13121322
1323+ !> @brief Applies periodic boundary conditions to the color function and its divergence fields.
13131324 subroutine s_color_function_periodic (c_divs , bc_dir , bc_loc , k , l )
13141325 $:GPU_ROUTINE(function_name= ' s_color_function_periodic' , &
13151326 & parallelism= ' [seq]' , cray_inline= True)
@@ -1365,6 +1376,7 @@ contains
13651376
13661377 end subroutine s_color_function_periodic
13671378
1379+ !> @brief Applies reflective boundary conditions to the color function and its divergence fields.
13681380 subroutine s_color_function_reflective (c_divs , bc_dir , bc_loc , k , l )
13691381 $:GPU_ROUTINE(function_name= ' s_color_function_reflective' , &
13701382 & parallelism= ' [seq]' , cray_inline= True)
@@ -1444,6 +1456,7 @@ contains
14441456
14451457 end subroutine s_color_function_reflective
14461458
1459+ !> @brief Extrapolates the color function and its divergence into ghost cells by copying boundary values.
14471460 subroutine s_color_function_ghost_cell_extrapolation (c_divs , bc_dir , bc_loc , k , l )
14481461 $:GPU_ROUTINE(function_name= ' s_color_function_ghost_cell_extrapolation' , &
14491462 & parallelism= ' [seq]' , cray_inline= True)
@@ -1499,6 +1512,7 @@ contains
14991512
15001513 end subroutine s_color_function_ghost_cell_extrapolation
15011514
1515+ !> @brief Populates ghost cell buffers for the Jacobian scalar field used in the IGR elliptic solver.
15021516 impure subroutine s_populate_F_igr_buffers (bc_type , jac_sf )
15031517
15041518 type(integer_field), dimension (1 :num_dims, 1 :2 ), intent (in ) :: bc_type
@@ -1670,6 +1684,7 @@ contains
16701684 #:endif
16711685 end subroutine s_populate_F_igr_buffers
16721686
1687+ !> @brief Creates MPI derived datatypes for boundary condition type arrays and buffer arrays used in parallel I/ O.
16731688 impure subroutine s_create_mpi_types (bc_type )
16741689
16751690 type(integer_field), dimension (1 :num_dims, 1 :2 ), intent (in ) :: bc_type
@@ -1703,6 +1718,7 @@ contains
17031718#endif
17041719 end subroutine s_create_mpi_types
17051720
1721+ !> @brief Writes boundary condition type and buffer data to serial (unformatted) restart files.
17061722 subroutine s_write_serial_boundary_condition_files (q_prim_vf , bc_type , step_dirpath , old_grid_in )
17071723
17081724 type(scalar_field), dimension (sys_size), intent (in ) :: q_prim_vf
@@ -1744,6 +1760,7 @@ contains
17441760
17451761 end subroutine s_write_serial_boundary_condition_files
17461762
1763+ !> @brief Writes boundary condition type and buffer data to per- rank parallel files using MPI I/ O.
17471764 subroutine s_write_parallel_boundary_condition_files (q_prim_vf , bc_type )
17481765
17491766 type(scalar_field), dimension (sys_size), intent (in ) :: q_prim_vf
@@ -1810,6 +1827,7 @@ contains
18101827
18111828 end subroutine s_write_parallel_boundary_condition_files
18121829
1830+ !> @brief Reads boundary condition type and buffer data from serial (unformatted) restart files.
18131831 subroutine s_read_serial_boundary_condition_files (step_dirpath , bc_type )
18141832
18151833 character (LEN=* ), intent (in ) :: step_dirpath
@@ -1856,6 +1874,7 @@ contains
18561874
18571875 end subroutine s_read_serial_boundary_condition_files
18581876
1877+ !> @brief Reads boundary condition type and buffer data from per- rank parallel files using MPI I/ O.
18591878 subroutine s_read_parallel_boundary_condition_files (bc_type )
18601879
18611880 type(integer_field), dimension (1 :num_dims, 1 :2 ), intent (inout ) :: bc_type
@@ -1922,6 +1941,7 @@ contains
19221941
19231942 end subroutine s_read_parallel_boundary_condition_files
19241943
1944+ !> @brief Packs primitive variable boundary slices into bc_buffers arrays for serialization.
19251945 subroutine s_pack_boundary_condition_buffers (q_prim_vf )
19261946
19271947 type(scalar_field), dimension (sys_size), intent (in ) :: q_prim_vf
@@ -1968,6 +1988,7 @@ contains
19681988
19691989 end subroutine s_pack_boundary_condition_buffers
19701990
1991+ !> @brief Initializes the per- cell boundary condition type arrays with the global default BC values.
19711992 subroutine s_assign_default_bc_type (bc_type )
19721993
19731994 type(integer_field), dimension (1 :num_dims, 1 :2 ), intent (in ) :: bc_type
@@ -2183,6 +2204,7 @@ contains
21832204
21842205 end subroutine s_populate_grid_variables_buffers
21852206
2207+ !> @brief Deallocates boundary condition buffer arrays allocated during module initialization.
21862208 subroutine s_finalize_boundary_common_module ()
21872209
21882210 if (bc_io) then
0 commit comments