Function to check if a face with given left and right property requires a upward (fine->coarse) dependency.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | leftPrp |
Left property of the face. |
||
integer, | intent(in) | :: | rightPrp |
Right property of the face. |
Does the face requires a vertical dependency.
function tem_reqDep_up(leftPrp, rightPrp) result( reqDep )
! --------------------------------------------------------------------------
!> Left property of the face.
integer, intent(in) :: leftPrp
!> Right property of the face.
integer, intent(in) :: rightPrp
!> Does the face requires a vertical dependency.
logical :: reqDep
! --------------------------------------------------------------------------
reqDep = .false.
! Check if one of the face properties (left or right) has the from coarser
! property.
if ( iand(tem_fromCoarserFace_prp,leftPrp)/=0 &
& .or. &
& iand(tem_fromCoarserFace_prp,rightPrp)/=0 ) then
reqDep = .true.
end if
end function tem_reqDep_up