Convert a child coordinate {0,1} to non-zero stencil direction {-1,1}
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | childCoord |
function childToStencil( childCoord ) result( stencilCoord)
! ---------------------------------------------------------------------------
integer, intent(in) :: childCoord
integer :: stencilCoord
! ---------------------------------------------------------------------------
stencilCoord = (childCoord*2) -1
end function childToStencil