Write library for writing hdf5 files use by components
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=dp), | public, | parameter | :: | sim_delta | = | 1.0e-10_dp |
Minimum value for criteria calculation |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=hid_t), | value | :: | f_id |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=hid_t), | intent(in), | value | :: | dset_id |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=:), | public, | allocatable | :: | name |
name that will appear in HDF5 file |
||
| real(kind=dp), | public, | allocatable | :: | node_x(:) |
spacial axes (scale) of 1d element |
||
| real(kind=dp), | public, | pointer | :: | data(:,:) |
data to write into hdf5 data table |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(hdf_desc_t), | public, | pointer | :: | p |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=:), | public, | allocatable | :: | name | |||
| character(len=:), | public, | allocatable | :: | vars(:) | |||
| type(hdf_desc_p_t), | public, | allocatable | :: | comps(:) |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer(kind=hid_t), | public | :: | dset |
Dataset is kept open |
|||
| integer, | public | :: | rank | ||||
| integer(kind=hsize_t), | public | :: | dims(8) | = | 0 |
Value 3 should be enough |
|
| real(kind=dp), | public, | allocatable | :: | data(:,:) |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| logical, | public | :: | write_results |
from cfg: write result to file active |
|||
| real(kind=dp), | public | :: | min_save_time |
from cfg: minimum time before saving |
|||
| real(kind=dp), | public | :: | last_saved_time | = | 0 |
updated when data is saved |
|
| integer, | public | :: | steps_to_revert | = | 0 |
nb of HDF5 entries to revert after rollback (persistent across rejected steps) |
|
| logical, | public | :: | write_results2D |
from cfg: write 2D results to specific files |
|||
| real(kind=dp), | public | :: | time_btw_2D_writes |
from cfg: physical time between 2D writes |
|||
| integer(kind=hid_t), | public | :: | file_id | ||||
| type(tbl_dsc_t), | public, | allocatable | :: | tbl_dsc(:) | |||
| type(growing_h5_tbl_t), | public, | allocatable | :: | tables(:) | |||
| type(growing_h5_tbl_t), | public | :: | time |
growing tables |
|||
| type(growing_h5_tbl_t), | public | :: | global |
growing tables |
| procedure, public :: add_table => hdf5_add_table | |
| procedure, public :: add_to_table => hdf5_add_to_table | |
| procedure, public :: prepare_data => hdf5_prepare_data | |
| procedure, public :: init => hdf5_init | |
| procedure, public :: close => hdf5_close | |
| procedure, public :: write => hdf5_write |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(hdf5_t), | intent(inout) | :: | me | |||
| character(len=*), | intent(in) | :: | table | |||
| character(len=*), | intent(in) | :: | variables(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(hdf5_t), | intent(inout) | :: | me | |||
| type(hdf_desc_t), | intent(inout), | target | :: | desc | ||
| character(len=*), | intent(in) | :: | tbl_name |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(hdf5_t), | intent(inout), | target | :: | me |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(growing_h5_tbl_t), | intent(inout) | :: | tbl | |||
| integer(kind=hid_t), | intent(in) | :: | group_id | |||
| integer(kind=hid_t), | intent(in) | :: | time_id | |||
| character(len=*), | intent(in) | :: | name | |||
| character(len=*), | intent(in) | :: | vars(:) | |||
| type(hdf_desc_p_t), | intent(inout) | :: | comps(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(hdf5_t), | intent(inout) | :: | me | |||
| real(kind=dp), | intent(in) | :: | t | |||
| real(kind=dp), | intent(in) | :: | dt | |||
| real(kind=dp), | intent(in) | :: | t_final |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(hdf5_t), | intent(inout) | :: | me |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=hid_t), | intent(in) | :: | location |
hdf5 file or group id |
||
| character(len=*), | intent(in) | :: | attribute_name | |||
| integer, | intent(in) | :: | attribute_value(..) |
from scalar up to rank 3 |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(growing_h5_tbl_t), | intent(inout) | :: | me | |||
| integer, | intent(in) | :: | n_steps_back |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(growing_h5_tbl_t), | intent(inout) | :: | me | |||
| integer(kind=hid_t), | intent(in) | :: | location | |||
| character(len=*), | intent(in) | :: | name | |||
| real(kind=dp), | intent(in) | :: | datas(..) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(growing_h5_tbl_t), | intent(inout) | :: | me | |||
| real(kind=dp), | intent(in), | target | :: | datas(..) |
Write 1d variable string array to hdf5 file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=hid_t), | intent(in) | :: | location |
hdf5 file or group id |
||
| character(len=*), | intent(in) | :: | dset_name | |||
| character(len=*), | intent(in) | :: | value(:) |
from scalar up to rank 3 |
||
| integer(kind=size_t), | intent(in) | :: | length(:) | |||
| integer(kind=hid_t), | intent(out), | optional | :: | id_out |
BROKEN: (not variable) Write 1d atribute variable string array to hdf5 file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=hid_t), | intent(in) | :: | location |
hdf5 file or group id |
||
| character(len=*), | intent(in) | :: | attribute_name | |||
| character(len=*), | intent(in) | :: | value_in(:) |
from scalar up to rank 3 |
||
| integer(kind=size_t), | intent(in) | :: | length(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=hid_t), | intent(in) | :: | location |
hdf5 file or group id |
||
| character(len=*), | intent(in) | :: | dset_name | |||
| character(len=*), | intent(in) | :: | value(..) |
from rank 1 up to rank 3 |
||
| integer(kind=hid_t), | intent(out), | optional | :: | id_out |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=hid_t), | intent(in) | :: | scale_id | |||
| integer(kind=hid_t), | intent(in) | :: | data_id | |||
| integer, | intent(in) | :: | axies | |||
| character(len=*), | intent(in) | :: | name | |||
| character(len=*), | intent(in), | optional | :: | label |