Return the element type of a treeID .
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=long_k), | intent(in) | :: | tID |
the element you are looking for |
||
type(tem_element_type), | intent(in) | :: | me |
the descriptor you use for searching |
element type
function tem_eTypeOfId( tID, me ) result( eType )
! ---------------------------------------------------------------------------
!> the element you are looking for
integer(kind=long_k), intent(in) :: tID
!> the descriptor you use for searching
type(tem_element_type), intent(in) :: me
!> element type
integer :: eType
! ---------------------------------------------------------------------------
integer :: pos
! ---------------------------------------------------------------------------
eType = eT_undefined
pos = PositionOfVal( me = me%tID, val = tID )
if( pos > 0 ) then
eType = me%eType%val( pos )
end if
end function tem_eTypeOfId