OGS
|
Definition at line 33 of file HdfWriter.h.
#include <HdfWriter.h>
Classes | |
struct | HdfMesh |
Public Member Functions | |
HdfWriter (std::vector< MeshHdfData > const &meshes, unsigned long long initial_step, std::filesystem::path const &filepath, bool use_compression, bool is_file_manager, unsigned int n_files) | |
Write file with geometry and topology data. The data itself is held by a structure outside of this class. The writer assumes the data holder to not change during writing. | |
void | writeStep (double time) |
Writes attributes. The data itself is hold by a structure outside of this class. The writer assumes the data holder to not change during writing and HdfData given to constructor to be still valid. | |
~HdfWriter () | |
Private Attributes | |
std::filesystem::path const | _hdf5_filepath |
hid_t const | _file |
hid_t const | _meshes_group |
std::vector< std::unique_ptr< HdfMesh > > | _hdf_meshes |
std::vector< double > | _step_times |
bool const | _use_compression |
bool const | _is_file_manager |
MeshLib::IO::HdfWriter::HdfWriter | ( | std::vector< MeshHdfData > const & | meshes, |
unsigned long long | initial_step, | ||
std::filesystem::path const & | filepath, | ||
bool | use_compression, | ||
bool | is_file_manager, | ||
unsigned int | n_files ) |
Write file with geometry and topology data. The data itself is held by a structure outside of this class. The writer assumes the data holder to not change during writing.
meshes | meta data of meshes to be written |
initial_step | number of the step (temporal collection), usually 0, greater 0 with continuation of simulation |
filepath | absolute or relative filepath to the hdf5 file |
use_compression | if true gzip compression is enabled |
is_file_manager | True if process (in parallel execution) is |
n_files | Number of output files |
Definition at line 209 of file HdfWriter.cpp.
References _hdf_meshes, _meshes_group, _use_compression, checkHdfStatus(), createDataSet(), MeshLib::IO::HdfWriter::HdfMesh::variable_attributes, and writeDataSet().
MeshLib::IO::HdfWriter::~HdfWriter | ( | ) |
Definition at line 263 of file HdfWriter.cpp.
References _file, _hdf_meshes, _is_file_manager, _meshes_group, _step_times, and writeTimeSeries().
void MeshLib::IO::HdfWriter::writeStep | ( | double | time | ) |
Writes attributes. The data itself is hold by a structure outside of this class. The writer assumes the data holder to not change during writing and HdfData given to constructor to be still valid.
time | time_value of step to be written to temporal collection |
Definition at line 279 of file HdfWriter.cpp.
References _hdf_meshes, _step_times, OGS_FATAL, and writeDataSet().
|
private |
Definition at line 69 of file HdfWriter.h.
Referenced by ~HdfWriter().
|
private |
Definition at line 68 of file HdfWriter.h.
|
private |
Definition at line 71 of file HdfWriter.h.
Referenced by HdfWriter(), ~HdfWriter(), and writeStep().
|
private |
Definition at line 74 of file HdfWriter.h.
Referenced by ~HdfWriter().
|
private |
Definition at line 70 of file HdfWriter.h.
Referenced by HdfWriter(), and ~HdfWriter().
|
private |
Definition at line 72 of file HdfWriter.h.
Referenced by ~HdfWriter(), and writeStep().
|
private |
Definition at line 73 of file HdfWriter.h.
Referenced by HdfWriter().