Single block periodic boundary condition. Not to be used for multiblock boundary condition
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | face |
subroutine periodic_bc(face)
!< Single block periodic boundary condition.
!< Not to be used for multiblock boundary condition
implicit none
character(len=*), intent(in) :: face
select case(trim(face))
case('imin')
qp(-2:0,:,:,:) = qp(imx-3:imx-1,:,:,:)
case('imax')
qp(imx:imx+2,:,:,:) = qp(1:3,:,:,:)
case('jmin')
qp(:,-2:0,:,:) = qp(:,jmx-3:jmx-1,:,:)
case('jmax')
qp(:,jmx:jmx+2,:,:) = qp(:,1:3,:,:)
case('kmin')
qp(:,:,-2:0,:) = qp(:,:,kmx-3:kmx-1,:)
case('kmax')
qp(:,:,kmx:kmx+2,:) = qp(:,:,1:3,:)
case Default
Fatal_error
end select
end subroutine periodic_bc