DBCSR data methods
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=*), | private, | parameter | :: | moduleN | = | 'dbcsr_data_methods' | |
| logical, | private, | parameter | :: | careful_mod | = | .FALSE. | |
| integer, | private, | SAVE | :: | id | = | 0 |
Transfers data from host- to device-buffer, asynchronously.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(dbcsr_data_obj), | intent(inout) | :: | area |
Transfers data from device- to host-buffer, asynchronously.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(dbcsr_data_obj), | intent(inout) | :: | area |
Initializes a data area and all the actual data pointers
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(dbcsr_data_obj), | intent(inout) | :: | area |
data area |
||
| integer, | intent(in) | :: | data_type |
select data type to use |
||
| integer, | intent(in), | optional | :: | data_size |
allocate this much data second dimension data size |
|
| integer, | intent(in), | optional | :: | data_size2 |
allocate this much data second dimension data size |
|
| type(dbcsr_memtype_type), | intent(in), | optional | :: | memory_type |
type of memory to use |
Ensures a minimum size of a previously-setup data area. The data area must have been previously setup with dbcsr_data_new.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(dbcsr_data_obj), | intent(inout) | :: | area |
data area |
||
| integer, | intent(in) | :: | data_size |
allocate this much data |
||
| logical, | intent(in), | optional | :: | nocopy |
do not keep potentially existing data, default is to keep it pad new data with zeros |
|
| logical, | intent(in), | optional | :: | zero_pad |
do not keep potentially existing data, default is to keep it pad new data with zeros |
|
| real(kind=dp), | intent(in), | optional | :: | factor |
increase size by this factor |
|
| type(dbcsr_data_obj), | intent(inout), | optional | :: | area_resize |
Removes a reference and/or clears the data area.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(dbcsr_data_obj), | intent(inout) | :: | area |
data area |