DBCSR tensor Input / Output
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=*), | private, | parameter | :: | moduleN | = | 'dbcsr_tensor_types' |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in), | optional | :: | unit_nr |
Write tensor global info: block dimensions, full dimensions and process grid dimensions
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(in) | :: | tensor | |||
integer, | intent(in) | :: | unit_nr | |||
logical, | intent(in), | optional | :: | full_info |
Whether to print distribution and block size vectors |
Write info on tensor distribution & load balance
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(in) | :: | tensor | |||
integer, | intent(in) | :: | unit_nr |
Write all tensor blocks
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in) | :: | io_unit_master |
for global output for local output |
||
integer, | intent(in) | :: | io_unit_all |
for global output for local output |
||
logical, | intent(in), | optional | :: | write_int |
convert to integers (useful for testing with integer tensors) |
Write a tensor block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | name |
tensor name |
||
integer, | intent(in), | DIMENSION(:) | :: | blk_size |
block size |
|
integer, | intent(in), | DIMENSION(:) | :: | blk_index |
block index |
|
integer, | intent(in) | :: | proc |
which process am I |
||
integer, | intent(in) | :: | unit_nr |
unit number |
||
real(kind=real_8), | intent(in), | optional, | DIMENSION(blk_size(1), blk_size(2)) | :: | blk_values_2 |
block values for 2 dimensions |
real(kind=real_8), | intent(in), | optional, | DIMENSION(blk_size(1), blk_size(2), blk_size(3)) | :: | blk_values_3 |
block values for 2 dimensions |
real(kind=real_8), | intent(in), | optional, | DIMENSION(blk_size(1), blk_size(2), blk_size(3), blk_size(4)) | :: | blk_values_4 |
block values for 2 dimensions |
logical, | intent(in), | optional | :: | write_int |
write_int convert values to integers |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in) | :: | io_unit_master | |||
integer, | intent(in) | :: | io_unit_all |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_pgrid_type), | intent(in) | :: | pgrid | |||
integer, | intent(in) | :: | unit_nr |