Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 17 additions & 12 deletions src/common/m_boundary_common.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ contains
call s_dirichlet(q_prim_vf, 1, -1, k, l)
end select

if (qbmm .and. (.not. polytropic) .and. (bc_type(1, 1)%sf(0, k, l) <= BC_GHOST_EXTRAP)) then
if (qbmm .and. (.not. polytropic) .and. present(pb_in) .and. present(mv_in) .and. (bc_type(1, 1)%sf(0, k, &
& l) <= BC_GHOST_EXTRAP)) then
call s_qbmm_extrapolation(1, -1, k, l, pb_in, mv_in)
Comment thread
qodo-code-review[bot] marked this conversation as resolved.
end if
end do
Expand Down Expand Up @@ -130,7 +131,8 @@ contains
call s_dirichlet(q_prim_vf, 1, 1, k, l)
end select

if (qbmm .and. (.not. polytropic) .and. (bc_type(1, 2)%sf(0, k, l) <= BC_GHOST_EXTRAP)) then
if (qbmm .and. (.not. polytropic) .and. present(pb_in) .and. present(mv_in) .and. (bc_type(1, 2)%sf(0, k, &
& l) <= BC_GHOST_EXTRAP)) then
call s_qbmm_extrapolation(1, 1, k, l, pb_in, mv_in)
end if
end do
Expand Down Expand Up @@ -166,8 +168,8 @@ contains
call s_dirichlet(q_prim_vf, 2, -1, k, l)
end select

if (qbmm .and. (.not. polytropic) .and. (bc_type(2, 1)%sf(k, 0, l) <= BC_GHOST_EXTRAP) .and. (bc_type(2, &
& 1)%sf(k, 0, l) /= BC_AXIS)) then
if (qbmm .and. (.not. polytropic) .and. present(pb_in) .and. present(mv_in) .and. (bc_type(2, 1)%sf(k, 0, &
& l) <= BC_GHOST_EXTRAP) .and. (bc_type(2, 1)%sf(k, 0, l) /= BC_AXIS)) then
call s_qbmm_extrapolation(2, -1, k, l, pb_in, mv_in)
end if
end do
Expand Down Expand Up @@ -196,7 +198,8 @@ contains
call s_dirichlet(q_prim_vf, 2, 1, k, l)
end select

if (qbmm .and. (.not. polytropic) .and. (bc_type(2, 2)%sf(k, 0, l) <= BC_GHOST_EXTRAP)) then
if (qbmm .and. (.not. polytropic) .and. present(pb_in) .and. present(mv_in) .and. (bc_type(2, 2)%sf(k, 0, &
& l) <= BC_GHOST_EXTRAP)) then
call s_qbmm_extrapolation(2, 1, k, l, pb_in, mv_in)
end if
end do
Expand Down Expand Up @@ -231,7 +234,8 @@ contains
call s_dirichlet(q_prim_vf, 3, -1, k, l)
end select

if (qbmm .and. (.not. polytropic) .and. (bc_type(3, 1)%sf(k, l, 0) <= BC_GHOST_EXTRAP)) then
if (qbmm .and. (.not. polytropic) .and. present(pb_in) .and. present(mv_in) .and. (bc_type(3, 1)%sf(k, l, &
& 0) <= BC_GHOST_EXTRAP)) then
call s_qbmm_extrapolation(3, -1, k, l, pb_in, mv_in)
end if
end do
Expand Down Expand Up @@ -260,7 +264,8 @@ contains
call s_dirichlet(q_prim_vf, 3, 1, k, l)
end select

if (qbmm .and. (.not. polytropic) .and. (bc_type(3, 2)%sf(k, l, 0) <= BC_GHOST_EXTRAP)) then
if (qbmm .and. (.not. polytropic) .and. present(pb_in) .and. present(mv_in) .and. (bc_type(3, 2)%sf(k, l, &
& 0) <= BC_GHOST_EXTRAP)) then
call s_qbmm_extrapolation(3, 1, k, l, pb_in, mv_in)
end if
end do
Expand Down Expand Up @@ -675,10 +680,10 @@ contains
subroutine s_axis(q_prim_vf, pb_in, mv_in, k, l)

$:GPU_ROUTINE(parallelism='[seq]')
type(scalar_field), dimension(sys_size), intent(inout) :: q_prim_vf
real(stp), dimension(idwbuff(1)%beg:,idwbuff(2)%beg:,idwbuff(3)%beg:,1:,1:), intent(inout) :: pb_in, mv_in
integer, intent(in) :: k, l
integer :: j, q, i
type(scalar_field), dimension(sys_size), intent(inout) :: q_prim_vf
real(stp), dimension(idwbuff(1)%beg:,idwbuff(2)%beg:,idwbuff(3)%beg:,1:,1:), optional, intent(inout) :: pb_in, mv_in
integer, intent(in) :: k, l
integer :: j, q, i

do j = 1, buff_size
if (z_cc(l) < pi) then
Expand Down Expand Up @@ -708,7 +713,7 @@ contains
end if
end do

if (qbmm .and. .not. polytropic) then
if (qbmm .and. .not. polytropic .and. present(pb_in) .and. present(mv_in)) then
Comment thread
sbryngelson marked this conversation as resolved.
do i = 1, nb
do q = 1, nnode
do j = 1, buff_size
Expand Down
Loading