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