Sub-position (1 or 2, in the positive direction of side s) of child c along side s; 0 if c does not touch side s.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | c | |||
| integer, | intent(in) | :: | s |
pure function qt_subpos(c,s) result(t)
!! Sub-position (1 or 2, in the positive direction of side s) of child c along side s;
!! 0 if c does not touch side s.
implicit none
integer,intent(in) :: c,s
integer :: t
if(childOfSide(1,s) == c) then
t = 1
elseif(childOfSide(2,s) == c) then
t = 2
else
t = 0
endif
endfunction qt_subpos