destroy subtree for shapes defined in each spacetime functions for dynamic load balancing
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_st_fun_linkedList_type), | intent(inout) | :: | me |
Linked list to append the spacetime function to. |
subroutine tem_destroy_subTree_of_st_funList( me )
! -------------------------------------------------------------------- !
!> Linked list to append the spacetime function to.
type( tem_st_fun_linkedList_type ), intent(inout) :: me
! -------------------------------------------------------------------- !
type(tem_st_fun_listElem_type), pointer :: st_fun
integer :: iSt, iList
! -------------------------------------------------------------------- !
call tem_horizontalSpacer( fUnit = logUnit(3))
write(logUnit(3),*) 'Create subtree for all space time functions stored '
write(logUnit(3),*) 'in linked list of spacetime function'
st_fun => me%head
iList = 0
do
if (.not. associated(st_fun)) EXIT
iList = iList + 1
do iSt = 1, st_fun%nVals
call tem_destroy_subTree(me = st_fun%val(iSt)%subTree)
end do
st_fun => st_fun%next
end do
write(logUnit(3),'(a,i3,a)') ' Done creating subtree for ', iList, &
& ' spacetime functions'
call tem_horizontalSpacer( fUnit = logUnit(3))
end subroutine tem_destroy_subTree_of_st_funList