deallocate the stencil treeID neighbor arrays for each element This routine can only be called after build_horizontalDependencies
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_levelDesc_type), | intent(inout) | :: | levelDesc(:) |
the level descriptor |
subroutine tem_cleanup_arrays( levelDesc )
! ---------------------------------------------------------------------------
!> the level descriptor
type(tem_levelDesc_type) , intent(inout) :: levelDesc(:)
! ---------------------------------------------------------------------------
integer :: iLevel
! ---------------------------------------------------------------------------
! loop over all levels and destroy the corresponding elem types
do iLevel = 1,size(levelDesc)
call destroy( me = levelDesc( iLevel )%elem )
end do
end subroutine tem_cleanup_arrays