Appends the given value at the end of the list.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(list_callstackentry_type), | intent(inout) | :: | list | |||
type(callstack_entry_type), | intent(in) | :: | value |
SUBROUTINE list_callstackentry_push(list, value) # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_callstackentry.F" !! Appends the given value at the end of the list. # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_callstackentry.F" TYPE(list_callstackentry_type), intent(inout) :: list # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_callstackentry.F" TYPE(callstack_entry_type), intent(in) :: value # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_callstackentry.F" INTEGER :: stat # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_callstackentry.F" # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_callstackentry.F" IF(.not. ASSOCIATED(list%arr)) & # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_callstackentry.F" DBCSR_ABORT("list_callstackentry_push: list is not initialized.") # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_callstackentry.F" if(list%size == size(list%arr)) & # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_callstackentry.F" call change_capacity_callstackentry(list, 2*size(list%arr)+1) # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_callstackentry.F" # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_callstackentry.F" list%size = list%size + 1 # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_callstackentry.F" ALLOCATE(list%arr(list%size)%p, stat=stat) # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_callstackentry.F" IF (stat/=0)& # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_callstackentry.F" DBCSR_ABORT("list_callstackentry_push: allocation failed") # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_callstackentry.F" list%arr(list%size)%p%value = value # 21 "/__w/dbcsr/dbcsr/src/core/dbcsr_list_callstackentry.F" END SUBROUTINE list_callstackentry_push