@@ -22,7 +22,7 @@ module m_boundary_common
2222 type(scalar_field), dimension (:, :), allocatable :: bc_buffers
2323 !$acc declare create(bc_buffers)
2424
25- type(boundary_flags ) :: bc_flag
25+ type(boundary_bounds ) :: bc_bound
2626
2727#ifdef MFC_MPI
2828 integer , dimension (1 :3 , - 1 :1 ) :: MPI_BC_TYPE_TYPE, MPI_BC_BUFFER_TYPE
@@ -34,7 +34,7 @@ module m_boundary_common
3434 s_populate_capillary_buffers, &
3535 s_finalize_boundary_common_module
3636
37- public :: bc_buffers, bc_flag
37+ public :: bc_buffers, bc_bound
3838
3939#ifdef MFC_MPI
4040 public :: MPI_BC_TYPE_TYPE, MPI_BC_BUFFER_TYPE
@@ -44,7 +44,7 @@ contains
4444
4545 impure subroutine s_initialize_boundary_common_module ()
4646
47- bc_flag %xb = bc_x%beg; bc_flag %xe = bc_x%end; bc_flag %yb = bc_y%beg; bc_flag %ye = bc_y%end; bc_flag %zb = bc_z%beg; bc_flag %ze = bc_z%end
47+ bc_bound %xb = bc_x%beg; bc_bound %xe = bc_x%end; bc_bound %yb = bc_y%beg; bc_bound %ye = bc_y%end; bc_bound %zb = bc_z%beg; bc_bound %ze = bc_z%end
4848
4949 @:ALLOCATE(bc_buffers(1 :num_dims, - 1 :1 ))
5050
@@ -71,17 +71,17 @@ contains
7171 !> The purpose of this procedure is to populate the buffers
7272 !! of the primitive variables, depending on the selected
7373 !! boundary conditions.
74- impure subroutine s_populate_variables_buffers (q_prim_vf , pb , mv , bc_type , bc_flag )
74+ impure subroutine s_populate_variables_buffers (q_prim_vf , pb , mv , bc_type , bc_bound )
7575
7676 type(scalar_field), dimension (sys_size), intent (inout ) :: q_prim_vf
7777 real (wp), dimension (idwbuff(1 )%beg:, idwbuff(2 )%beg:, idwbuff(3 )%beg:, 1 :, 1 :), intent (inout ) :: pb, mv
7878 type(integer_field), dimension (1 :num_dims, - 1 :1 ), intent (in ) :: bc_type
79- type(boundary_flags ), intent (in ) :: bc_flag
79+ type(boundary_bounds ), intent (in ) :: bc_bound
8080
8181 integer :: k, l
8282
8383 ! Population of Buffers in x- direction
84- if (bc_flag %xb >= 0 ) then
84+ if (bc_bound %xb >= 0 ) then
8585 call s_mpi_sendrecv_variables_buffers(q_prim_vf, pb, mv, 1 , - 1 )
8686 else
8787 !$acc parallel loop collapse(2 ) gang vector default(present)
@@ -105,7 +105,7 @@ contains
105105 end do
106106 end if
107107
108- if (bc_flag %xe >= 0 ) then
108+ if (bc_bound %xe >= 0 ) then
109109 call s_mpi_sendrecv_variables_buffers(q_prim_vf, pb, mv, 1 , 1 )
110110 else
111111 !$acc parallel loop collapse(2 ) gang vector default(present)
@@ -133,7 +133,7 @@ contains
133133
134134 if (n == 0 ) return
135135
136- if (bc_flag %yb >= 0 ) then
136+ if (bc_bound %yb >= 0 ) then
137137 call s_mpi_sendrecv_variables_buffers(q_prim_vf, pb, mv, 2 , - 1 )
138138 else
139139 !$acc parallel loop collapse(2 ) gang vector default(present)
@@ -159,7 +159,7 @@ contains
159159 end do
160160 end if
161161
162- if (bc_flag %ye >= 0 ) then
162+ if (bc_bound %ye >= 0 ) then
163163 call s_mpi_sendrecv_variables_buffers(q_prim_vf, pb, mv, 2 , 1 )
164164 else
165165 !$acc parallel loop collapse(2 ) gang vector default(present)
@@ -187,7 +187,7 @@ contains
187187
188188 if (p == 0 ) return
189189
190- if (bc_flag %zb >= 0 ) then
190+ if (bc_bound %zb >= 0 ) then
191191 call s_mpi_sendrecv_variables_buffers(q_prim_vf, pb, mv, 3 , - 1 )
192192 else
193193 !$acc parallel loop collapse(2 ) gang vector default(present)
@@ -211,7 +211,7 @@ contains
211211 end do
212212 end if
213213
214- if (bc_flag %ze >= 0 ) then
214+ if (bc_bound %ze >= 0 ) then
215215 call s_mpi_sendrecv_variables_buffers(q_prim_vf, pb, mv, 3 , 1 )
216216 else
217217 !$acc parallel loop collapse(2 ) gang vector default(present)
@@ -1157,16 +1157,16 @@ contains
11571157
11581158 end subroutine s_qbmm_extrapolation
11591159
1160- impure subroutine s_populate_capillary_buffers (c_divs , bc_type , bc_flag )
1160+ impure subroutine s_populate_capillary_buffers (c_divs , bc_type , bc_bound )
11611161
11621162 type(scalar_field), dimension (num_dims + 1 ), intent (inout ) :: c_divs
11631163 type(integer_field), dimension (1 :num_dims, - 1 :1 ), intent (in ) :: bc_type
1164- type(boundary_flags ), intent (in ) :: bc_flag
1164+ type(boundary_bounds ), intent (in ) :: bc_bound
11651165
11661166 integer :: k, l
11671167
11681168 !< x- direction
1169- if (bc_flag %xb >= 0 ) then
1169+ if (bc_bound %xb >= 0 ) then
11701170 call s_mpi_sendrecv_capilary_variables_buffers(c_divs, 1 , - 1 )
11711171 else
11721172 !$acc parallel loop collapse(2 ) gang vector default(present)
@@ -1184,7 +1184,7 @@ contains
11841184 end do
11851185 end if
11861186
1187- if (bc_flag %xe >= 0 ) then
1187+ if (bc_bound %xe >= 0 ) then
11881188 call s_mpi_sendrecv_capilary_variables_buffers(c_divs, 1 , 1 )
11891189 else
11901190 !$acc parallel loop collapse(2 ) gang vector default(present)
@@ -1205,7 +1205,7 @@ contains
12051205 if (n == 0 ) return
12061206
12071207 !< y- direction
1208- if (bc_flag %yb >= 0 ) then
1208+ if (bc_bound %yb >= 0 ) then
12091209 call s_mpi_sendrecv_capilary_variables_buffers(c_divs, 2 , - 1 )
12101210 else
12111211 !$acc parallel loop collapse(2 ) gang vector default(present)
@@ -1223,7 +1223,7 @@ contains
12231223 end do
12241224 end if
12251225
1226- if (bc_flag %ye >= 0 ) then
1226+ if (bc_bound %ye >= 0 ) then
12271227 call s_mpi_sendrecv_capilary_variables_buffers(c_divs, 2 , 1 )
12281228 else
12291229 !$acc parallel loop collapse(2 ) gang vector default(present)
@@ -1244,7 +1244,7 @@ contains
12441244 if (p == 0 ) return
12451245
12461246 !< z- direction
1247- if (bc_flag %zb >= 0 ) then
1247+ if (bc_bound %zb >= 0 ) then
12481248 call s_mpi_sendrecv_capilary_variables_buffers(c_divs, 3 , - 1 )
12491249 else
12501250 !$acc parallel loop collapse(2 ) gang vector default(present)
@@ -1262,7 +1262,7 @@ contains
12621262 end do
12631263 end if
12641264
1265- if (bc_flag %ze >= 0 ) then
1265+ if (bc_bound %ze >= 0 ) then
12661266 call s_mpi_sendrecv_capilary_variables_buffers(c_divs, 3 , 1 )
12671267 else
12681268 !$acc parallel loop collapse(2 ) gang vector default(present)
0 commit comments