Get the boundary property position in the list of all properties in tree.
There should be only one boundary property, and the first one found will
be returned. If there is no boundary property at all a -1
is returned.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(treelmesh_type), | intent(in) | :: | tree |
Tree to find the boundary condition property for. |
Position of the boundary condition property in the list of all properties.
pure function tem_bc_prop_pos(tree) result(bcpos) ! -------------------------------------------------------------------- ! !> Tree to find the boundary condition property for. type(treelmesh_type), intent(in) :: tree !> Position of the boundary condition property in the list of all !! properties. integer :: bcpos ! -------------------------------------------------------------------- ! integer :: iProp ! -------------------------------------------------------------------- ! bcpos = -1 do iProp=1,tree%global%nProperties if (tree%global%Property(iprop)%bitpos == prp_hasBnd) then bcpos = iProp EXIT end if end do end function tem_bc_prop_pos