Face quadrant (1..4, in face s's trace coordinates) of child c on face s; 0 if c does not touch face s.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | c | |||
| integer, | intent(in) | :: | s |
pure function oc_subpos(c,s) result(t)
!! Face quadrant (1..4, in face s's trace coordinates) of child c on face s;
!! 0 if c does not touch face s.
implicit none
integer,intent(in) :: c,s
integer :: t
integer :: q
t = 0
do q = 1,4
if(childOfFace(q,s) == c) then
t = q
return
endif
enddo
endfunction oc_subpos