Skip to content

Commit b3686a7

Browse files
committed
Frontier fix
1 parent e63a112 commit b3686a7

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

src/common/m_boundary_conditions.fpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ contains
215215
subroutine s_ghost_cell_extrapolation(q_prim_vf, pb, mv, bc_dir, bc_loc)
216216

217217
type(scalar_field), dimension(sys_size), intent(inout) :: q_prim_vf
218-
real(wp), dimension(idwbuff(1)%beg:, idwbuff(2)%beg:, idwbuff(3)%beg:, 1:, 1:), intent(inout) :: pb, mv
218+
real(wp), optional, dimension(idwbuff(1)%beg:, idwbuff(2)%beg:, idwbuff(3)%beg:, 1:, 1:), intent(inout) :: pb, mv
219219
integer, intent(in) :: bc_dir, bc_loc
220220
integer :: j, k, l, q, i
221221

@@ -325,7 +325,7 @@ contains
325325
subroutine s_symmetry(q_prim_vf, pb, mv, bc_dir, bc_loc)
326326

327327
type(scalar_field), dimension(sys_size), intent(inout) :: q_prim_vf
328-
real(wp), dimension(idwbuff(1)%beg:, idwbuff(2)%beg:, idwbuff(3)%beg:, 1:, 1:), intent(inout) :: pb, mv
328+
real(wp), optional, dimension(idwbuff(1)%beg:, idwbuff(2)%beg:, idwbuff(3)%beg:, 1:, 1:), intent(inout) :: pb, mv
329329
integer, intent(in) :: bc_dir, bc_loc
330330

331331
integer :: j, k, l, q, i
@@ -638,7 +638,7 @@ contains
638638
subroutine s_periodic(q_prim_vf, pb, mv, bc_dir, bc_loc)
639639

640640
type(scalar_field), dimension(sys_size), intent(inout) :: q_prim_vf
641-
real(wp), dimension(idwbuff(1)%beg:, idwbuff(2)%beg:, idwbuff(3)%beg:, 1:, 1:), intent(inout) :: pb, mv
641+
real(wp), optional, dimension(idwbuff(1)%beg:, idwbuff(2)%beg:, idwbuff(3)%beg:, 1:, 1:), intent(inout) :: pb, mv
642642
integer, intent(in) :: bc_dir, bc_loc
643643

644644
integer :: j, k, l, q, i
@@ -857,7 +857,7 @@ contains
857857
subroutine s_axis(q_prim_vf, pb, mv, bc_dir, bc_loc)
858858

859859
type(scalar_field), dimension(sys_size), intent(inout) :: q_prim_vf
860-
real(wp), dimension(idwbuff(1)%beg:, idwbuff(2)%beg:, idwbuff(3)%beg:, 1:, 1:), intent(inout) :: pb, mv
860+
real(wp), optional, dimension(idwbuff(1)%beg:, idwbuff(2)%beg:, idwbuff(3)%beg:, 1:, 1:), intent(inout) :: pb, mv
861861
integer, intent(in) :: bc_dir, bc_loc
862862

863863
integer :: j, k, l, q, i
@@ -930,7 +930,7 @@ contains
930930
subroutine s_slip_wall(q_prim_vf, pb, mv, bc_dir, bc_loc)
931931

932932
type(scalar_field), dimension(sys_size), intent(inout) :: q_prim_vf
933-
real(wp), dimension(idwbuff(1)%beg:, idwbuff(2)%beg:, idwbuff(3)%beg:, 1:, 1:), intent(inout) :: pb, mv
933+
real(wp), optional, dimension(idwbuff(1)%beg:, idwbuff(2)%beg:, idwbuff(3)%beg:, 1:, 1:), intent(inout) :: pb, mv
934934
integer, intent(in) :: bc_dir, bc_loc
935935

936936
integer :: j, k, l, q, i
@@ -1071,7 +1071,7 @@ contains
10711071
subroutine s_no_slip_wall(q_prim_vf, pb, mv, bc_dir, bc_loc)
10721072

10731073
type(scalar_field), dimension(sys_size), intent(inout) :: q_prim_vf
1074-
real(wp), dimension(idwbuff(1)%beg:, idwbuff(2)%beg:, idwbuff(3)%beg:, 1:, 1:), intent(inout) :: pb, mv
1074+
real(wp), optional, dimension(idwbuff(1)%beg:, idwbuff(2)%beg:, idwbuff(3)%beg:, 1:, 1:), intent(inout) :: pb, mv
10751075
integer, intent(in) :: bc_dir, bc_loc
10761076

10771077
integer :: j, k, l, q, i
@@ -1247,7 +1247,7 @@ contains
12471247

12481248
subroutine s_qbmm_extrapolation(pb, mv, bc_dir, bc_loc)
12491249

1250-
real(wp), dimension(idwbuff(1)%beg:, idwbuff(2)%beg:, idwbuff(3)%beg:, 1:, 1:), intent(inout) :: pb, mv
1250+
real(wp), optional, dimension(idwbuff(1)%beg:, idwbuff(2)%beg:, idwbuff(3)%beg:, 1:, 1:), intent(inout) :: pb, mv
12511251
integer, intent(in) :: bc_dir, bc_loc
12521252

12531253
integer :: j, k, l, q, i

src/common/m_mpi_common.fpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ contains
647647
#ifdef MFC_MPI
648648
649649
call nvtxStartRange("RHS-COMM-PACKBUF")
650-
!$acc update device(v_size)
650+
!$acc update device(v_size)
651651
652652
#ifdef MFC_SIMULATION
653653
if (qbmm .and. .not. polytropic) then
@@ -874,7 +874,6 @@ contains
874874
p_recv, buffer_count, mpi_p, src_proc, recv_tag, &
875875
MPI_COMM_WORLD, MPI_STATUS_IGNORE, ierr)
876876
877-
878877
call nvtxEndRange ! RHS-MPI-SENDRECV-(NO)-RDMA
879878
880879
#:if rdma_mpi

src/pre_process/m_perturbation.fpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,6 @@ contains
629629
call s_populate_variables_buffers(q_prim_vf)
630630

631631
! Perform smoothing and store in temp array
632-
633632
if (n == 0) then
634633
do j = 0, m
635634
do i = 1, sys_size
@@ -675,7 +674,6 @@ contains
675674
end do
676675
end do
677676
end do
678-
679677
end do
680678

681679
end subroutine s_elliptic_smoothing

0 commit comments

Comments
 (0)