ADIOS2 reader type
Initialises ADIOS2 handler
Initialises ADIOS2
self: Instance of base_adios2_t
comm: MPI communicator (use MPI_COMM_WORLD
for parallel runs)
io_name: unique name associated with IO component inside ADIOS2
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(base_adios2_t), | intent(inout) | :: | self | |||
integer, | intent(in) | :: | comm | |||
character(len=*), | intent(in) | :: | io_name |
io that spawns an engine based on its configuration |
Opens an ADIOS2 engine
Opens an ADIOS2 engine filename: Unique engine identifier within io mode: Opening mode (write, append, read)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(base_adios2_t), | intent(inout) | :: | self | |||
character(len=*), | intent(in) | :: | filename |
Unique engine identifier within io |
||
integer, | intent(in) | :: | mode |
Opening mode (write, append, read) |
||
integer, | intent(in), | optional | :: | comm |
MPI communicator (optional) |
ADIOS2 file object
Closes the ADIOS2 session
Closes ADIOS2 session
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(base_adios2_t), | intent(inout) | :: | self | |||
type(adios2_file_t), | intent(inout) | :: | file |
Ends a step in the ADIOS2 engine
Ends a step in the ADIOS2 engine
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(base_adios2_t), | intent(inout) | :: | self | |||
type(adios2_file_t), | intent(inout) | :: | file |
Error handling for ADIOS2 operations
Handles ADIOS2 errors
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(base_adios2_t), | intent(inout) | :: | self | |||
integer, | intent(in) | :: | ierr |
Error code from ADIOS2 operations |
||
character(len=*), | intent(in) | :: | message |
Error message to display |
Finalises ADIOS2 handler
Finalises ADIOS2 handler
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(base_adios2_t), | intent(inout) | :: | self |
Begin a step for ADIOS2 reader type
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(adios2_reader_t), | intent(inout) | :: | self | |||
type(adios2_file_t), | intent(inout) | :: | file |
Read scalar integer data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(adios2_reader_t), | intent(inout) | :: | self | |||
character(len=*), | intent(in) | :: | name | |||
integer, | intent(out) | :: | data | |||
type(adios2_file_t), | intent(inout) | :: | file |
Read scalar long integer data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(adios2_reader_t), | intent(inout) | :: | self | |||
character(len=*), | intent(in) | :: | name | |||
integer(kind=i8), | intent(out) | :: | data | |||
type(adios2_file_t), | intent(inout) | :: | file |
Read scalar real data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(adios2_reader_t), | intent(inout) | :: | self | |||
character(len=*), | intent(in) | :: | name | |||
real(kind=dp), | intent(out) | :: | data | |||
type(adios2_file_t), | intent(inout) | :: | file |
Read 2d array real data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(adios2_reader_t), | intent(inout) | :: | self | |||
character(len=*), | intent(in) | :: | name | |||
real(kind=dp), | intent(out), | dimension(:, :), allocatable | :: | data | ||
type(adios2_file_t), | intent(inout) | :: | file | |||
integer(kind=i8), | intent(in), | dimension(2) | :: | start_dims | ||
integer(kind=i8), | intent(in), | dimension(2) | :: | count_dims |
Read 3d array real data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(adios2_reader_t), | intent(inout) | :: | self | |||
character(len=*), | intent(in) | :: | name | |||
real(kind=dp), | intent(out), | dimension(:, :, :), allocatable | :: | data | ||
type(adios2_file_t), | intent(inout) | :: | file | |||
integer(kind=i8), | intent(in), | dimension(3) | :: | start_dims | ||
integer(kind=i8), | intent(in), | dimension(3) | :: | count_dims |