Copy the properties of the level decriptor to the ones in subTree.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_levelDesc_type), | intent(in) | :: | levelDesc(:) |
level descriptor including all elements (fluid, ghost, halo) |
||
type(tem_subTree_type), | intent(inout) | :: | subTree |
tree to pass information to |
subroutine tem_copyPropertyBitsFromLevelDesc( levelDesc, subTree )
! ---------------------------------------------------------------------------
!> level descriptor including all elements (fluid, ghost, halo)
type(tem_levelDesc_type ),intent(in) :: levelDesc(:)
!> tree to pass information to
type(tem_subTree_type), intent(inout) :: subTree
! ---------------------------------------------------------------------------
integer :: iLevel
integer :: nElems
integer :: elemCounter
! ---------------------------------------------------------------------------
allocate( subTree%ElemPropertyBits( subTree%nElems ))
elemCounter = 0
do iLevel = 1, size(levelDesc)
nElems = size(levelDesc(iLevel)%property(:))
subTree%ElemPropertyBits(elemCounter+1 : elemCounter+nElems) = &
& levelDesc(iLevel)%property(:)
elemCounter = elemCounter + nElems
end do
end subroutine tem_copyPropertyBitsFromLevelDesc