.true. if child c's side s is interior to its parent (its neighbour across s is a sibling).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | s | |||
| integer, | intent(in) | :: | c |
pure function qt_internal(s,c) result(isInternal)
!! .true. if child c's side s is interior to its parent (its neighbour across s is a sibling).
implicit none
integer,intent(in) :: s,c
logical :: isInternal
select case(s)
case(1); isInternal = (c == 3 .or. c == 4) ! South interior for the top children
case(2); isInternal = (c == 1 .or. c == 4) ! East interior for the left children
case(3); isInternal = (c == 1 .or. c == 2) ! North interior for the bottom children
case(4); isInternal = (c == 2 .or. c == 3) ! West interior for the right children
case default; isInternal = .false.
endselect
endfunction qt_internal