Inverse of a SELF face flip: the flip that maps donor-face indices back to receiver-face indices. Flips 0..4 and 6 are involutions; 5 and 7 invert each other.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | f |
pure function invFlip3D(f) result(fi)
!! Inverse of a SELF face flip: the flip that maps donor-face indices back to
!! receiver-face indices. Flips 0..4 and 6 are involutions; 5 and 7 invert each other.
implicit none
integer,intent(in) :: f
integer :: fi
integer,parameter :: inv(0:7) = [0,1,2,3,4,7,6,5]
fi = inv(f)
endfunction invFlip3D