Documentation for module dbcsr_data_methods

DBCSR data methods

source: dbcsr_data_methods.F
Loading...

Forwarded symbols:

dbcsr_data_clear_pointer
dbcsr_data_methods_low::dbcsr_data_clear_pointer
Clears pointers from the data area.
dbcsr_data_exists
dbcsr_data_methods_low::dbcsr_data_exists
Checks whether a data pointer exists
dbcsr_data_get_memory_type
dbcsr_data_methods_low::dbcsr_data_get_memory_type
...
dbcsr_data_get_size
dbcsr_data_methods_low::dbcsr_data_get_size
Returns the allocated data size
dbcsr_data_get_sizes
dbcsr_data_methods_low::dbcsr_data_get_sizes
Returns the allocated data size
dbcsr_data_get_size_referenced
dbcsr_data_methods_low::dbcsr_data_get_size_referenced
Get actual data storage used for matrix
dbcsr_data_get_type
dbcsr_data_methods_low::dbcsr_data_get_type
Returns data type of a data area
dbcsr_data_hold
dbcsr_data_methods_low::dbcsr_data_hold
Registers another use of the data area
dbcsr_data_init
dbcsr_data_methods_low::dbcsr_data_init
Initializes a data area
dbcsr_data_set_pointer
dbcsr_data_methods_low::dbcsr_data_set_pointer
...
dbcsr_data_set_size_referenced
dbcsr_data_methods_low::dbcsr_data_set_size_referenced
Sets the referenced size of the data area
dbcsr_data_valid
dbcsr_data_methods_low::dbcsr_data_valid
Checks whether a data area is valid
dbcsr_get_data
dbcsr_data_methods_low::dbcsr_get_data
Returns the single/double precision real/complex data
dbcsr_get_data_p
dbcsr_data_methods_low::dbcsr_get_data_p
Returns the single/double precision real/complex data
dbcsr_get_data_p_c
dbcsr_data_methods_low::dbcsr_get_data_p_c
Returns the single/double precision real/complex data
dbcsr_get_data_p_d
dbcsr_data_methods_low::dbcsr_get_data_p_d
Returns the single/double precision real/complex data
dbcsr_get_data_p_s
dbcsr_data_methods_low::dbcsr_get_data_p_s
Returns the single/double precision real/complex data
dbcsr_get_data_p_z
dbcsr_data_methods_low::dbcsr_get_data_p_z
Returns the single/double precision real/complex data
dbcsr_scalar
dbcsr_data_methods_low::dbcsr_scalar
Sets a scalar in an encapsulated data structure
dbcsr_scalar_are_equal
dbcsr_data_methods_low::dbcsr_scalar_are_equal
Returns whether an encapsulated scalar is equal to another value
dbcsr_scalar_fill_all
dbcsr_data_methods_low::dbcsr_scalar_fill_all
Fills all data and precision types from the set one
dbcsr_scalar_get_type
dbcsr_data_methods_low::dbcsr_scalar_get_type
Returns data type of a scalar
dbcsr_scalar_get_value
dbcsr_data_methods_low::dbcsr_scalar_get_value
Sets a scalar in an encapsulated data structure
dbcsr_scalar_negative
dbcsr_data_methods_low::dbcsr_scalar_negative
Returns an encapsulated scalar as a negation of the given
dbcsr_scalar_one
dbcsr_data_methods_low::dbcsr_scalar_one
Returns an encapsulated scalar "1"
dbcsr_scalar_set_type
dbcsr_data_methods_low::dbcsr_scalar_set_type
Sets data type of a scalar
dbcsr_scalar_zero
dbcsr_data_methods_low::dbcsr_scalar_zero
Returns an encapsulated scalar "0"
dbcsr_type_1d_to_2d
dbcsr_data_methods_low::dbcsr_type_1d_to_2d
Returns 2-D data type corresponding to the given 1-D one.
dbcsr_type_2d_to_1d
dbcsr_data_methods_low::dbcsr_type_2d_to_1d
Returns 1-d data type corresponding to the given 2-D one.

public Subroutines/Functions:

Transfers data from device- to host-buffer, asynchronously.
Ensures a minimum size of a previously-setup data area.
Transfers data from host- to device-buffer, asynchronously.
Initializes a data area and all the actual data pointers
Removes a reference and/or clears the data area.

SUBROUTINEdbcsr_data_dev2host(area)

Transfers data from device- to host-buffer, asynchronously.

Arguments:
INTENT(inout)
:: area ...

SUBROUTINEdbcsr_data_ensure_size(area, data_size, nocopy, zero_pad, factor, area_resize)

Ensures a minimum size of a previously-setup data area.

Arguments:
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
LOGICAL,
INTENT(in),
OPTIONAL
:: zero_pad pad new data with zeros
REAL(dp),
INTENT(in),
OPTIONAL
:: factor increase size by this factor
INTENT(inout),
OPTIONAL
:: area_resize ...

SUBROUTINEdbcsr_data_host2dev(area)

Transfers data from host- to device-buffer, asynchronously.

Arguments:
INTENT(inout)
:: area ...

SUBROUTINEdbcsr_data_new(area, data_type, data_size, data_size2, memory_type)

Initializes a data area and all the actual data pointers

Arguments:
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
INTEGER,
INTENT(in),
OPTIONAL
:: data_size2 second dimension data size
INTENT(in),
OPTIONAL
:: memory_type type of memory to use

SUBROUTINEdbcsr_data_release(area)

Removes a reference and/or clears the data area.

Arguments:
INTENT(inout)
:: area data area