Deallocated the internal data-structures of the given list. Caution: If the stored values are pointers, their targets will not get deallocated by this routine.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(list_routinereport_type), | intent(inout) | :: | list |
SUBROUTINE list_routinereport_destroy(list) # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinereport.F" !! Deallocated the internal data-structures of the given list. # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinereport.F" !! Caution: If the stored values are pointers, their targets will # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinereport.F" !! not get deallocated by this routine. # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinereport.F" # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinereport.F" TYPE(list_routinereport_type), intent(inout) :: list # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinereport.F" INTEGER :: i # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinereport.F" IF(.not. ASSOCIATED(list%arr)) & # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinereport.F" DBCSR_ABORT("list_routinereport_destroy: list is not initialized.") # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinereport.F" # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinereport.F" do i=1, list%size # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinereport.F" deallocate(list%arr(i)%p) # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinereport.F" end do # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinereport.F" deallocate(list%arr) # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinereport.F" list%size = -1 # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinereport.F" END SUBROUTINE list_routinereport_destroy