DBCSR pointer and unmanaged array utilities
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=*), | private, | parameter | :: | moduleN | = | 'dbcsr_ptr_util' | |
logical, | private, | parameter | :: | careful_mod | = | .FALSE. |
Ensures that an array is appropriately large.
Type | Intent | Optional | 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 |
Ensures that an array is appropriately large.
Type | Intent | Optional | 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 |
Ensures that an array is appropriately large.
Type | Intent | Optional | 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 |
Ensures that an array is appropriately large.
Type | Intent | Optional | 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 |
Ensures that an array is appropriately large.
Type | Intent | Optional | 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 |
Ensures that an array is appropriately large.
Type | Intent | Optional | 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 |
Returns a pointer with different bounds.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_4), | DIMENSION(:), POINTER | :: | original |
original data pointer new pointer |
||
integer, | intent(in) | :: | lb |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
||
integer, | intent(in) | :: | ub |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
original data pointer new pointer
Returns a pointer with different bounds.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_8), | DIMENSION(:), POINTER | :: | original |
original data pointer new pointer |
||
integer, | intent(in) | :: | lb |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
||
integer, | intent(in) | :: | ub |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
original data pointer new pointer
Returns a pointer with different bounds.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_4), | DIMENSION(:), POINTER | :: | original |
original data pointer new pointer |
||
integer, | intent(in) | :: | lb |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
||
integer, | intent(in) | :: | ub |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
original data pointer new pointer
Returns a pointer with different bounds.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_8), | DIMENSION(:), POINTER | :: | original |
original data pointer new pointer |
||
integer, | intent(in) | :: | lb |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
||
integer, | intent(in) | :: | ub |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
original data pointer new pointer
Returns a pointer with different bounds.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_4), | DIMENSION(:), POINTER | :: | original |
original data pointer new pointer |
||
integer, | intent(in) | :: | lb |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
||
integer, | intent(in) | :: | ub |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
original data pointer new pointer
Returns a pointer with different bounds.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_8), | DIMENSION(:), POINTER | :: | original |
original data pointer new pointer |
||
integer, | intent(in) | :: | lb |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
||
integer, | intent(in) | :: | ub |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
original data pointer new pointer
Repoints a pointer into a part of a data area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | new_area |
repoints this encapsulated pointer |
||
type(dbcsr_data_obj), | intent(in) | :: | area |
area to point into |
||
integer, | intent(in) | :: | offset |
point to this offset in area |
||
integer, | intent(in), | optional | :: | len |
length of data area to point to |
copy of new_area
Sets a rank-2 pointer to rank-1 data using Fortran 2003 pointer rank remapping.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_4), | DIMENSION(:, :), POINTER | :: | r2p | |||
integer, | intent(in) | :: | d1 | |||
integer, | intent(in) | :: | d2 | |||
real(kind=real_4), | DIMENSION(:), POINTER | :: | r1p |
Sets a rank-2 pointer to rank-1 data using Fortran 2003 pointer rank remapping.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_8), | DIMENSION(:, :), POINTER | :: | r2p | |||
integer, | intent(in) | :: | d1 | |||
integer, | intent(in) | :: | d2 | |||
real(kind=real_8), | DIMENSION(:), POINTER | :: | r1p |
Sets a rank-2 pointer to rank-1 data using Fortran 2003 pointer rank remapping.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_4), | DIMENSION(:, :), POINTER | :: | r2p | |||
integer, | intent(in) | :: | d1 | |||
integer, | intent(in) | :: | d2 | |||
complex(kind=real_4), | DIMENSION(:), POINTER | :: | r1p |
Sets a rank-2 pointer to rank-1 data using Fortran 2003 pointer rank remapping.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_8), | DIMENSION(:, :), POINTER | :: | r2p | |||
integer, | intent(in) | :: | d1 | |||
integer, | intent(in) | :: | d2 | |||
complex(kind=real_8), | DIMENSION(:), POINTER | :: | r1p |
Sets a rank-2 pointer to rank-1 data using Fortran 2003 pointer rank remapping.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_8), | DIMENSION(:, :), POINTER | :: | r2p | |||
integer, | intent(in) | :: | d1 | |||
integer, | intent(in) | :: | d2 | |||
integer(kind=int_8), | DIMENSION(:), POINTER | :: | r1p |
Sets a rank-2 pointer to rank-1 data using Fortran 2003 pointer rank remapping.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_4), | DIMENSION(:, :), POINTER | :: | r2p | |||
integer, | intent(in) | :: | d1 | |||
integer, | intent(in) | :: | d2 | |||
integer(kind=int_4), | DIMENSION(:), POINTER | :: | r1p |
Copies memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_4), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
integer(kind=int_4), | intent(in), | DIMENSION(1:n) | :: | src |
source memory |
|
integer, | intent(in) | :: | n |
length of copy |
Copies memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_8), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
integer(kind=int_8), | intent(in), | DIMENSION(1:n) | :: | src |
source memory |
|
integer, | intent(in) | :: | n |
length of copy |
Copies memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_4), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
real(kind=real_4), | intent(in), | DIMENSION(1:n) | :: | src |
source memory |
|
integer, | intent(in) | :: | n |
length of copy |
Copies memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_8), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
real(kind=real_8), | intent(in), | DIMENSION(1:n) | :: | src |
source memory |
|
integer, | intent(in) | :: | n |
length of copy |
Copies memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_4), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
complex(kind=real_4), | intent(in), | DIMENSION(1:n) | :: | src |
source memory |
|
integer, | intent(in) | :: | n |
length of copy |
Copies memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_8), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
complex(kind=real_8), | intent(in), | DIMENSION(1:n) | :: | src |
source memory |
|
integer, | intent(in) | :: | n |
length of copy |
Zeros memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_4), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
integer, | intent(in) | :: | n |
length of elements to zero |
Zeros memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_8), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
integer, | intent(in) | :: | n |
length of elements to zero |
Zeros memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_4), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
integer, | intent(in) | :: | n |
length of elements to zero |
Zeros memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_8), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
integer, | intent(in) | :: | n |
length of elements to zero |
Zeros memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_4), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
integer, | intent(in) | :: | n |
length of elements to zero |
Zeros memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_8), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
integer, | intent(in) | :: | n |
length of elements to zero |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_4), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
integer, | intent(in) | :: | n |
length of elements to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_8), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
integer, | intent(in) | :: | n |
length of elements to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_4), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
integer, | intent(in) | :: | n |
length of elements to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_8), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
integer, | intent(in) | :: | n |
length of elements to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_4), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
integer, | intent(in) | :: | n |
length of elements to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_8), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
integer, | intent(in) | :: | n |
length of elements to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_4), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
integer, | intent(in), | DIMENSION(2) | :: | sizes |
length of elements to allocate |
|
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_8), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
integer, | intent(in), | DIMENSION(2) | :: | sizes |
length of elements to allocate |
|
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_4), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
integer, | intent(in), | DIMENSION(2) | :: | sizes |
length of elements to allocate |
|
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_8), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
integer, | intent(in), | DIMENSION(2) | :: | sizes |
length of elements to allocate |
|
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_4), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
integer, | intent(in), | DIMENSION(2) | :: | sizes |
length of elements to allocate |
|
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_8), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
integer, | intent(in), | DIMENSION(2) | :: | sizes |
length of elements to allocate |
|
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_4), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_8), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_4), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_8), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_4), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_8), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_4), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_8), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_4), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_8), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_4), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_8), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Repoints a pointer into a part of a data area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | new_area |
repoints this encapsulated pointer |
||
type(dbcsr_data_obj), | intent(in) | :: | area |
area to point into |
||
integer, | intent(in) | :: | offset |
point to this offset in area |
||
integer, | intent(in), | optional | :: | len |
length of data area to point to |
copy of new_area
Returns a pointer with different bounds.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_8), | DIMENSION(:), POINTER | :: | original |
original data pointer new pointer |
||
integer, | intent(in) | :: | lb |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
||
integer, | intent(in) | :: | ub |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
original data pointer new pointer
Returns a pointer with different bounds.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_4), | DIMENSION(:), POINTER | :: | original |
original data pointer new pointer |
||
integer, | intent(in) | :: | lb |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
||
integer, | intent(in) | :: | ub |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
original data pointer new pointer
Returns a pointer with different bounds.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_8), | DIMENSION(:), POINTER | :: | original |
original data pointer new pointer |
||
integer, | intent(in) | :: | lb |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
||
integer, | intent(in) | :: | ub |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
original data pointer new pointer
Returns a pointer with different bounds.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_4), | DIMENSION(:), POINTER | :: | original |
original data pointer new pointer |
||
integer, | intent(in) | :: | lb |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
||
integer, | intent(in) | :: | ub |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
original data pointer new pointer
Returns a pointer with different bounds.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_4), | DIMENSION(:), POINTER | :: | original |
original data pointer new pointer |
||
integer, | intent(in) | :: | lb |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
||
integer, | intent(in) | :: | ub |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
original data pointer new pointer
Returns a pointer with different bounds.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_8), | DIMENSION(:), POINTER | :: | original |
original data pointer new pointer |
||
integer, | intent(in) | :: | lb |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
||
integer, | intent(in) | :: | ub |
lower and upper bound for the new pointer view lower and upper bound for the new pointer view |
original data pointer new pointer
Ensures that an array is appropriately large.
Type | Intent | Optional | 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 |
Copies memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_8), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
real(kind=real_8), | intent(in), | DIMENSION(1:n) | :: | src |
source memory |
|
integer, | intent(in) | :: | n |
length of copy |
Zeros memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_8), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
integer, | intent(in) | :: | n |
length of elements to zero |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_8), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
integer, | intent(in) | :: | n |
length of elements to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_8), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
integer, | intent(in), | DIMENSION(2) | :: | sizes |
length of elements to allocate |
|
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_8), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_8), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Sets a rank-2 pointer to rank-1 data using Fortran 2003 pointer rank remapping.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_8), | DIMENSION(:, :), POINTER | :: | r2p | |||
integer, | intent(in) | :: | d1 | |||
integer, | intent(in) | :: | d2 | |||
real(kind=real_8), | DIMENSION(:), POINTER | :: | r1p |
Ensures that an array is appropriately large.
Type | Intent | Optional | 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 |
Copies memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_4), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
real(kind=real_4), | intent(in), | DIMENSION(1:n) | :: | src |
source memory |
|
integer, | intent(in) | :: | n |
length of copy |
Zeros memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_4), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
integer, | intent(in) | :: | n |
length of elements to zero |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_4), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
integer, | intent(in) | :: | n |
length of elements to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_4), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
integer, | intent(in), | DIMENSION(2) | :: | sizes |
length of elements to allocate |
|
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_4), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_4), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Sets a rank-2 pointer to rank-1 data using Fortran 2003 pointer rank remapping.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_4), | DIMENSION(:, :), POINTER | :: | r2p | |||
integer, | intent(in) | :: | d1 | |||
integer, | intent(in) | :: | d2 | |||
real(kind=real_4), | DIMENSION(:), POINTER | :: | r1p |
Ensures that an array is appropriately large.
Type | Intent | Optional | 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 |
Copies memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_8), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
complex(kind=real_8), | intent(in), | DIMENSION(1:n) | :: | src |
source memory |
|
integer, | intent(in) | :: | n |
length of copy |
Zeros memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_8), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
integer, | intent(in) | :: | n |
length of elements to zero |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_8), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
integer, | intent(in) | :: | n |
length of elements to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_8), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
integer, | intent(in), | DIMENSION(2) | :: | sizes |
length of elements to allocate |
|
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_8), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_8), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Sets a rank-2 pointer to rank-1 data using Fortran 2003 pointer rank remapping.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_8), | DIMENSION(:, :), POINTER | :: | r2p | |||
integer, | intent(in) | :: | d1 | |||
integer, | intent(in) | :: | d2 | |||
complex(kind=real_8), | DIMENSION(:), POINTER | :: | r1p |
Ensures that an array is appropriately large.
Type | Intent | Optional | 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 |
Copies memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_4), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
complex(kind=real_4), | intent(in), | DIMENSION(1:n) | :: | src |
source memory |
|
integer, | intent(in) | :: | n |
length of copy |
Zeros memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_4), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
integer, | intent(in) | :: | n |
length of elements to zero |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_4), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
integer, | intent(in) | :: | n |
length of elements to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_4), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
integer, | intent(in), | DIMENSION(2) | :: | sizes |
length of elements to allocate |
|
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_4), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_4), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Sets a rank-2 pointer to rank-1 data using Fortran 2003 pointer rank remapping.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_4), | DIMENSION(:, :), POINTER | :: | r2p | |||
integer, | intent(in) | :: | d1 | |||
integer, | intent(in) | :: | d2 | |||
complex(kind=real_4), | DIMENSION(:), POINTER | :: | r1p |
Ensures that an array is appropriately large.
Type | Intent | Optional | 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 |
Copies memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_4), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
integer(kind=int_4), | intent(in), | DIMENSION(1:n) | :: | src |
source memory |
|
integer, | intent(in) | :: | n |
length of copy |
Zeros memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_4), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
integer, | intent(in) | :: | n |
length of elements to zero |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_4), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
integer, | intent(in) | :: | n |
length of elements to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_4), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
integer, | intent(in), | DIMENSION(2) | :: | sizes |
length of elements to allocate |
|
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_4), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_4), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Sets a rank-2 pointer to rank-1 data using Fortran 2003 pointer rank remapping.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_4), | DIMENSION(:, :), POINTER | :: | r2p | |||
integer, | intent(in) | :: | d1 | |||
integer, | intent(in) | :: | d2 | |||
integer(kind=int_4), | DIMENSION(:), POINTER | :: | r1p |
Ensures that an array is appropriately large.
Type | Intent | Optional | 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 |
Copies memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_8), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
integer(kind=int_8), | intent(in), | DIMENSION(1:n) | :: | src |
source memory |
|
integer, | intent(in) | :: | n |
length of copy |
Zeros memory area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_8), | intent(out), | DIMENSION(1:n) | :: | dst |
destination memory |
|
integer, | intent(in) | :: | n |
length of elements to zero |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_8), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
integer, | intent(in) | :: | n |
length of elements to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Allocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_8), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
integer, | intent(in), | DIMENSION(2) | :: | sizes |
length of elements to allocate |
|
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_8), | DIMENSION(:), POINTER, CONTIGUOUS | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Deallocates memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_8), | DIMENSION(:, :), POINTER | :: | mem |
memory to allocate |
||
type(dbcsr_memtype_type), | intent(in) | :: | mem_type |
memory type |
Sets a rank-2 pointer to rank-1 data using Fortran 2003 pointer rank remapping.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_8), | DIMENSION(:, :), POINTER | :: | r2p | |||
integer, | intent(in) | :: | d1 | |||
integer, | intent(in) | :: | d2 | |||
integer(kind=int_8), | DIMENSION(:), POINTER | :: | r1p |