|
Neko 1.99.11
A portable framework for high-order spectral element flow simulations
|
Interface for HDF5 files. More...


Public Member Functions | |
| procedure | read (this, data) |
| Read data in HDF5 format. | |
| procedure | write (this, data, t) |
| Write data in HDF5 format. | |
| procedure | get_next_output_fname (this) |
| Get the physical file name generated by the next write. | |
| procedure | set_overwrite (this, overwrite) |
| Set the overwrite flag for HDF5 files. | |
| procedure | open (this, mode) |
| Open a HDF5 file in a given mode. | |
| procedure | open_new (this) |
| Open a fresh numbered file, skipping names already present on disk. | |
| procedure | close (this) |
| Close the file. | |
| procedure | free (this) |
| Release an open file and its retained dataset resources. | |
| ifdef ifdef | |
| have_hdf5 have_hdf5 | |
| endif endif | |
| procedure | set_active_group (this, group_name_path) |
| Set the active group for HDF5 files. | |
| procedure | set_precision (this, precision) |
| Set the precision for the output (single or double). | |
| procedure | write_array (this, values, name, layout) |
| Write a one-dimensional host array, optionally reusing its layout. | |
| procedure, pass(this) | write_vector (this, vec, layout) |
| procedure, pass(this) | write_matrix (this, mat, layout) |
| procedure, pass(this) | write_field (this, fld) |
| procedure, pass(this) | write_int_attribute (this, attr_name, attr) |
| procedure, pass(this) | write_rp_attribute (this, attr_name, attr) |
| procedure, pass(this) | read_vector (this, data_name, vec, strategy) |
| procedure, pass(this) | read_matrix (this, data_name, mat, strategy) |
| procedure, pass(this) | read_int_attribute (this, attr_name, attr, attr_exists) |
| procedure, pass(this) | read_rp_attribute (this, attr_name, attr, attr_exists) |
| procedure | write_dataset (this, data, name, layout) |
| procedure | read_dataset (this, data_name, data, strategy) |
| procedure | write_attribute (this, data_name, data) |
| procedure | read_attribute (this, data_name, data, exist) |
| procedure | init (this, fname) |
| Generic file constructor. | |
| procedure(generic_file_write), deferred | write (this, data, t) |
| Read method. | |
| procedure(generic_file_read), deferred | read (this, data) |
| procedure | get_fname (this) |
| Get a file's name. | |
| procedure | get_next_output_fname (this) |
| Get the file name generated by the next write. | |
| procedure | get_base_fname (this) |
| Get base name without counter. | |
| procedure | set_counter (this, n) |
| Set the file counter to n. | |
| procedure | get_counter (this) |
| Get the file counter. | |
| procedure | set_start_counter (this, n) |
| Set the file start counter to n. | |
| procedure | get_start_counter (this) |
| Get the file start counter. | |
| procedure | increment_counter (this) |
| Increment the file counter by 1. | |
| procedure | check_exists (this) |
| Ensure the file exists. | |
| procedure | set_overwrite (this, overwrite) |
| Set overwrite mode. | |
Public Attributes | |
| integer(hid_t) | file_id = -1_hid_t |
| integer(hid_t) | active_group_id = -1_hid_t |
| integer(hid_t) | plist_id = -1_hid_t |
| character(len=1) | mode |
| integer | precision = -1 |
| integer | offset = 0 |
| integer | count = 0 |
| logical | serial = .false. |
| File format is serial. | |
| logical | overwrite = .false. |
Private Member Functions | |
| procedure, private | clear_datasets hdf5_file_clear_datasets |
| Release the datasets of the active group. | |
| procedure, private | prepare_dataset hdf5_file_prepare_dataset |
| Open or reuse a dataset and prepare the next write selection. | |
Private Attributes | |
| integer(hid_t), private | xfer_id = -1_hid_t |
| Collective transfer properties shared by writes to this open file. | |
| type(hdf5_dataset_t), dimension(:), allocatable, private | datasets |
| Datasets belonging to the active group, released before changing it. | |
| character(len=1024), private | fname |
| integer, private | counter = -1 |
| integer, private | start_counter = 0 |
Definition at line 107 of file hdf5_file.F90.
|
inherited |
Definition at line 73 of file generic_file.f90.
|
private |
Definition at line 141 of file hdf5_file.F90.
| procedure hdf5_file::hdf5_file_t::close | ( | class(hdf5_file_t), intent(inout) | this | ) |
Definition at line 136 of file hdf5_file.F90.
| hdf5_file::hdf5_file_t::endif |
Definition at line 144 of file hdf5_file.F90.
| procedure hdf5_file::hdf5_file_t::free | ( | class(hdf5_file_t), intent(inout) | this | ) |
Definition at line 138 of file hdf5_file.F90.
|
inherited |
Definition at line 61 of file generic_file.f90.
|
inherited |
Definition at line 65 of file generic_file.f90.
|
inherited |
Definition at line 57 of file generic_file.f90.
|
inherited |
Definition at line 59 of file generic_file.f90.
| procedure hdf5_file::hdf5_file_t::get_next_output_fname | ( | class(hdf5_file_t), intent(in) | this | ) |
Definition at line 130 of file hdf5_file.F90.
|
inherited |
Definition at line 69 of file generic_file.f90.
| hdf5_file::hdf5_file_t::have_hdf5 |
Definition at line 139 of file hdf5_file.F90.
| hdf5_file::hdf5_file_t::ifdef |
Definition at line 139 of file hdf5_file.F90.
|
inherited |
Definition at line 71 of file generic_file.f90.
|
inherited |
Write method.
Definition at line 51 of file generic_file.f90.
| procedure hdf5_file::hdf5_file_t::open | ( | class(hdf5_file_t), intent(inout) | this, |
| character(len=1), intent(in) | mode ) |
Definition at line 133 of file hdf5_file.F90.
| procedure hdf5_file::hdf5_file_t::open_new | ( | class(hdf5_file_t), intent(inout) | this | ) |
Definition at line 135 of file hdf5_file.F90.
|
private |
Definition at line 143 of file hdf5_file.F90.
|
pure virtualinherited |
Definition at line 55 of file generic_file.f90.
| procedure hdf5_file::hdf5_file_t::read | ( | class(hdf5_file_t) | this, |
| class(*), intent(inout), target | data ) |
| data | Data object to populate. |
Definition at line 127 of file hdf5_file.F90.
| procedure hdf5_file::hdf5_file_t::read_attribute | ( | class(hdf5_file_t), intent(inout) | this, |
| character(len=*), intent(in) | data_name, | ||
| class(*), intent(inout) | data, | ||
| logical, intent(inout) | exist ) |
Definition at line 162 of file hdf5_file.F90.
| procedure hdf5_file::hdf5_file_t::read_dataset | ( | class(hdf5_file_t), intent(inout) | this, |
| character(len=*), intent(in) | data_name, | ||
| class(*), intent(inout) | data, | ||
| character(len=*), intent(in), optional | strategy ) |
Definition at line 160 of file hdf5_file.F90.
| procedure, pass(this) hdf5_file::hdf5_file_t::read_int_attribute | ( | class(hdf5_file_t), intent(inout) | this, |
| character(len=*), intent(in) | attr_name, | ||
| integer, intent(inout) | attr, | ||
| logical, intent(inout) | attr_exists ) |
Definition at line 157 of file hdf5_file.F90.
| procedure, pass(this) hdf5_file::hdf5_file_t::read_matrix | ( | class(hdf5_file_t) | this, |
| character(len=*), intent(in) | data_name, | ||
| type(matrix_t), intent(inout) | mat, | ||
| character(len=*), intent(in), optional | strategy ) |
Definition at line 156 of file hdf5_file.F90.
| procedure, pass(this) hdf5_file::hdf5_file_t::read_rp_attribute | ( | class(hdf5_file_t), intent(inout) | this, |
| character(len=*), intent(in) | attr_name, | ||
| real(kind=rp), intent(inout) | attr, | ||
| logical, intent(inout) | attr_exists ) |
Definition at line 158 of file hdf5_file.F90.
| procedure, pass(this) hdf5_file::hdf5_file_t::read_vector | ( | class(hdf5_file_t) | this, |
| character(len=*), intent(in) | data_name, | ||
| type(vector_t), intent(inout) | vec, | ||
| character(len=*), intent(in), optional | strategy ) |
Definition at line 155 of file hdf5_file.F90.
| procedure hdf5_file::hdf5_file_t::set_active_group | ( | class(hdf5_file_t), intent(inout) | this, |
| character(len=*), intent(in), optional | group_name_path ) |
Definition at line 145 of file hdf5_file.F90.
|
inherited |
Definition at line 63 of file generic_file.f90.
|
inherited |
Definition at line 75 of file generic_file.f90.
| procedure hdf5_file::hdf5_file_t::set_overwrite | ( | class(hdf5_file_t), intent(inout) | this, |
| logical, intent(in) | overwrite ) |
Definition at line 131 of file hdf5_file.F90.
| procedure hdf5_file::hdf5_file_t::set_precision | ( | class(hdf5_file_t), intent(inout) | this, |
| integer, intent(in) | precision ) |
Definition at line 146 of file hdf5_file.F90.
|
inherited |
Definition at line 67 of file generic_file.f90.
|
pure virtualinherited |
Definition at line 53 of file generic_file.f90.
| procedure hdf5_file::hdf5_file_t::write | ( | class(hdf5_file_t), intent(inout) | this, |
| class(*), intent(in), target | data, | ||
| real(kind=dp), intent(in), optional | t ) |
| data | Data object to write. |
| [optional] | t Simulation time. |
Definition at line 129 of file hdf5_file.F90.
| procedure hdf5_file::hdf5_file_t::write_array | ( | class(hdf5_file_t), intent(inout) | this, |
| real(kind=rp), dimension(:), intent(in) | values, | ||
| character(len=*), intent(in) | name, | ||
| type(hdf5_layout_t), intent(in), optional | layout ) |
Definition at line 148 of file hdf5_file.F90.
| procedure hdf5_file::hdf5_file_t::write_attribute | ( | class(hdf5_file_t), intent(inout) | this, |
| character(len=*), intent(in) | data_name, | ||
| class(*), intent(inout) | data ) |
Definition at line 161 of file hdf5_file.F90.
| procedure hdf5_file::hdf5_file_t::write_dataset | ( | class(hdf5_file_t), intent(inout) | this, |
| class(*), intent(inout) | data, | ||
| character(len=*), intent(in), optional | name, | ||
| type(hdf5_layout_t), intent(in), optional | layout ) |
Definition at line 159 of file hdf5_file.F90.
| procedure, pass(this) hdf5_file::hdf5_file_t::write_field | ( | class(hdf5_file_t), intent(inout) | this, |
| type(field_t), intent(inout) | fld ) |
Definition at line 151 of file hdf5_file.F90.
| procedure, pass(this) hdf5_file::hdf5_file_t::write_int_attribute | ( | class(hdf5_file_t), intent(inout) | this, |
| character(len=*), intent(in) | attr_name, | ||
| integer, intent(in) | attr ) |
Definition at line 152 of file hdf5_file.F90.
| procedure, pass(this) hdf5_file::hdf5_file_t::write_matrix | ( | class(hdf5_file_t), intent(inout) | this, |
| type(matrix_t), intent(inout) | mat, | ||
| type(hdf5_layout_t), intent(in), optional | layout ) |
Definition at line 150 of file hdf5_file.F90.
| procedure, pass(this) hdf5_file::hdf5_file_t::write_rp_attribute | ( | class(hdf5_file_t), intent(inout) | this, |
| character(len=*), intent(in) | attr_name, | ||
| real(kind=rp), intent(in) | attr ) |
Definition at line 154 of file hdf5_file.F90.
| procedure, pass(this) hdf5_file::hdf5_file_t::write_vector | ( | class(hdf5_file_t), intent(inout) | this, |
| type(vector_t), intent(inout) | vec, | ||
| type(hdf5_layout_t), intent(in), optional | layout ) |
Definition at line 149 of file hdf5_file.F90.
| integer(hid_t) hdf5_file::hdf5_file_t::active_group_id = -1_hid_t |
Definition at line 112 of file hdf5_file.F90.
| integer hdf5_file::hdf5_file_t::count = 0 |
Definition at line 122 of file hdf5_file.F90.
|
privateinherited |
Definition at line 44 of file generic_file.f90.
|
private |
Definition at line 117 of file hdf5_file.F90.
| integer(hid_t) hdf5_file::hdf5_file_t::file_id = -1_hid_t |
Definition at line 111 of file hdf5_file.F90.
|
privateinherited |
Definition at line 43 of file generic_file.f90.
| character(len=1) hdf5_file::hdf5_file_t::mode |
Definition at line 119 of file hdf5_file.F90.
| integer hdf5_file::hdf5_file_t::offset = 0 |
Definition at line 121 of file hdf5_file.F90.
|
inherited |
Definition at line 48 of file generic_file.f90.
| integer(hid_t) hdf5_file::hdf5_file_t::plist_id = -1_hid_t |
Definition at line 113 of file hdf5_file.F90.
| integer hdf5_file::hdf5_file_t::precision = -1 |
Definition at line 120 of file hdf5_file.F90.
|
inherited |
Definition at line 47 of file generic_file.f90.
|
privateinherited |
Definition at line 45 of file generic_file.f90.
|
private |
Definition at line 115 of file hdf5_file.F90.