Returns the current size of the list.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(list_routinestat_type), | intent(in) | :: | list |
FUNCTION list_routinestat_size(list) RESULT(size) # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinestat.F" !! Returns the current size of the list. # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinestat.F" TYPE(list_routinestat_type), intent(in) :: list # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinestat.F" INTEGER :: size # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinestat.F" # 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_size: list is not initialized.") # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinestat.F" # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinestat.F" size = list%size # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_routinestat.F" END FUNCTION list_routinestat_size