ensure_array_size Interface

public interface ensure_array_size

Module Procedures

private subroutine ensure_array_size_i(array, array_resize, lb, ub, factor, nocopy, memory_type, zero_pad)

Ensures that an array is appropriately large.

Arguments

Type IntentOptional Attributes Name
integer(kind=int_4), DIMENSION(:), POINTER, CONTIGUOUS :: array

array to verify and possibly resize

integer(kind=int_4), optional, DIMENSION(:), POINTER :: array_resize
integer, intent(in), optional :: lb

desired array lower bound

integer, intent(in) :: ub

desired array upper bound

real(kind=dp), intent(in), optional :: factor

factor by which to exaggerate enlargements

logical, intent(in), optional :: nocopy

copy array on enlargement; default is to copy zero new allocations; default is to write nothing

type(dbcsr_memtype_type), intent(in), optional :: memory_type

use special memory

logical, intent(in), optional :: zero_pad

copy array on enlargement; default is to copy zero new allocations; default is to write nothing

private subroutine ensure_array_size_l(array, array_resize, lb, ub, factor, nocopy, memory_type, zero_pad)

Ensures that an array is appropriately large.

Arguments

Type IntentOptional Attributes Name
integer(kind=int_8), DIMENSION(:), POINTER, CONTIGUOUS :: array

array to verify and possibly resize

integer(kind=int_8), optional, DIMENSION(:), POINTER :: array_resize
integer, intent(in), optional :: lb

desired array lower bound

integer, intent(in) :: ub

desired array upper bound

real(kind=dp), intent(in), optional :: factor

factor by which to exaggerate enlargements

logical, intent(in), optional :: nocopy

copy array on enlargement; default is to copy zero new allocations; default is to write nothing

type(dbcsr_memtype_type), intent(in), optional :: memory_type

use special memory

logical, intent(in), optional :: zero_pad

copy array on enlargement; default is to copy zero new allocations; default is to write nothing

private subroutine ensure_array_size_s(array, array_resize, lb, ub, factor, nocopy, memory_type, zero_pad)

Ensures that an array is appropriately large.

Arguments

Type IntentOptional Attributes Name
real(kind=real_4), DIMENSION(:), POINTER, CONTIGUOUS :: array

array to verify and possibly resize

real(kind=real_4), optional, DIMENSION(:), POINTER :: array_resize
integer, intent(in), optional :: lb

desired array lower bound

integer, intent(in) :: ub

desired array upper bound

real(kind=dp), intent(in), optional :: factor

factor by which to exaggerate enlargements

logical, intent(in), optional :: nocopy

copy array on enlargement; default is to copy zero new allocations; default is to write nothing

type(dbcsr_memtype_type), intent(in), optional :: memory_type

use special memory

logical, intent(in), optional :: zero_pad

copy array on enlargement; default is to copy zero new allocations; default is to write nothing

private subroutine ensure_array_size_d(array, array_resize, lb, ub, factor, nocopy, memory_type, zero_pad)

Ensures that an array is appropriately large.

Arguments

Type IntentOptional Attributes Name
real(kind=real_8), DIMENSION(:), POINTER, CONTIGUOUS :: array

array to verify and possibly resize

real(kind=real_8), optional, DIMENSION(:), POINTER :: array_resize
integer, intent(in), optional :: lb

desired array lower bound

integer, intent(in) :: ub

desired array upper bound

real(kind=dp), intent(in), optional :: factor

factor by which to exaggerate enlargements

logical, intent(in), optional :: nocopy

copy array on enlargement; default is to copy zero new allocations; default is to write nothing

type(dbcsr_memtype_type), intent(in), optional :: memory_type

use special memory

logical, intent(in), optional :: zero_pad

copy array on enlargement; default is to copy zero new allocations; default is to write nothing

private subroutine ensure_array_size_c(array, array_resize, lb, ub, factor, nocopy, memory_type, zero_pad)

Ensures that an array is appropriately large.

Arguments

Type IntentOptional Attributes Name
complex(kind=real_4), DIMENSION(:), POINTER, CONTIGUOUS :: array

array to verify and possibly resize

complex(kind=real_4), optional, DIMENSION(:), POINTER :: array_resize
integer, intent(in), optional :: lb

desired array lower bound

integer, intent(in) :: ub

desired array upper bound

real(kind=dp), intent(in), optional :: factor

factor by which to exaggerate enlargements

logical, intent(in), optional :: nocopy

copy array on enlargement; default is to copy zero new allocations; default is to write nothing

type(dbcsr_memtype_type), intent(in), optional :: memory_type

use special memory

logical, intent(in), optional :: zero_pad

copy array on enlargement; default is to copy zero new allocations; default is to write nothing

private subroutine ensure_array_size_z(array, array_resize, lb, ub, factor, nocopy, memory_type, zero_pad)

Ensures that an array is appropriately large.

Arguments

Type IntentOptional Attributes Name
complex(kind=real_8), DIMENSION(:), POINTER, CONTIGUOUS :: array

array to verify and possibly resize

complex(kind=real_8), optional, DIMENSION(:), POINTER :: array_resize
integer, intent(in), optional :: lb

desired array lower bound

integer, intent(in) :: ub

desired array upper bound

real(kind=dp), intent(in), optional :: factor

factor by which to exaggerate enlargements

logical, intent(in), optional :: nocopy

copy array on enlargement; default is to copy zero new allocations; default is to write nothing

type(dbcsr_memtype_type), intent(in), optional :: memory_type

use special memory

logical, intent(in), optional :: zero_pad

copy array on enlargement; default is to copy zero new allocations; default is to write nothing