Removes all values from the list. The list itself is not deallocated.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(list_routinereport_type), | intent(inout) | :: | list |
SUBROUTINE list_routinereport_clear(list) # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinereport.F" !! Removes all values from the list. The list itself is not deallocated. # 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" # 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_clear: 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" list%size = 0 # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinereport.F" END SUBROUTINE list_routinereport_clear