find position stencil
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(grw_stencilelementarray_type), | intent(in) | :: | me |
List of element stencil definitions |
||
integer, | intent(in) | :: | val |
Stencil to search for |
Position of the header in the list, 0 if not found
function tem_stencil_getHeaderPos( me, val ) result( headerPos )
! -------------------------------------------------------------------- !
!> List of element stencil definitions
type( grw_stencilElementArray_type ), intent(in) :: me
!> Stencil to search for
integer, intent(in) :: val
!> Position of the header in the list, 0 if not found
integer :: headerPos
! -------------------------------------------------------------------- !
integer :: iStencil
! -------------------------------------------------------------------- !
headerPos = 0
! Run over all the stencils
do iStencil = 1, me%nVals
if ( me%val(iStencil)%headerPos == val ) then
headerPos = iStencil
end if
end do
end function tem_stencil_getHeaderPos