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_routinestat_type), | intent(inout) | :: | list |
SUBROUTINE list_routinestat_destroy(list) # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinestat.F" !! Deallocated the internal data-structures of the given list. # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinestat.F" !! Caution: If the stored values are pointers, their targets will # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinestat.F" !! not get deallocated by this routine. # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinestat.F" # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinestat.F" TYPE(list_routinestat_type), intent(inout) :: list # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinestat.F" INTEGER :: i # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinestat.F" IF(.not. ASSOCIATED(list%arr)) & # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinestat.F" DBCSR_ABORT("list_routinestat_destroy: list is not initialized.") # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinestat.F" # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinestat.F" do i=1, list%size # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinestat.F" deallocate(list%arr(i)%p) # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinestat.F" end do # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinestat.F" deallocate(list%arr) # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinestat.F" list%size = -1 # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinestat.F" END SUBROUTINE list_routinestat_destroy