OGS
|
Definition in file HdfWriter.cpp.
#include "HdfWriter.h"
#include <hdf5.h>
#include <string>
#include <utility>
#include <vector>
#include "BaseLib/Error.h"
#include "BaseLib/Logging.h"
#include "fileIO.h"
Go to the source code of this file.
Classes | |
struct | MeshLib::IO::HdfWriter::HdfMesh |
Namespaces | |
namespace | MeshLib |
namespace | MeshLib::IO |
Functions | |
template<typename... Args> | |
void | checkHdfStatus (const hid_t status, fmt::format_string< Args... > formatting, Args &&... args) |
static bool | checkCompression () |
static std::vector< Hdf5DimType > | prependDimension (Hdf5DimType const prepend_value, std::vector< Hdf5DimType > const &dimensions) |
static hid_t | createDataSet (hid_t const data_type, std::vector< Hdf5DimType > const &data_dims, std::vector< Hdf5DimType > const &max_dims, std::vector< Hdf5DimType > const &chunk_dims, bool const use_compression, hid_t const section, std::string const &dataset_name) |
static void | writeDataSet (void const *nodes_data, hid_t const data_type, std::vector< Hdf5DimType > const &data_dims, std::vector< Hdf5DimType > const &offset_dims, std::vector< Hdf5DimType > const &max_dims, std::vector< Hdf5DimType > const &chunk_dims, std::string const &dataset_name, Hdf5DimType const step, hid_t const dataset) |
Assumes a dataset is already opened by createDatasetFunction. | |
static void | writeTimeSeries (hid_t const file, std::vector< double > const &step_times, bool const is_file_manager) |
Write vector with time values into open hdf file. | |
Variables | |
static unsigned short int const | default_compression_factor = 1 |
|
static |
Definition at line 35 of file HdfWriter.cpp.
References WARN().
void checkHdfStatus | ( | const hid_t | status, |
fmt::format_string< Args... > | formatting, | ||
Args &&... | args ) |
Definition at line 22 of file HdfWriter.cpp.
References OGS_FATAL.
Referenced by MeshLib::IO::HdfWriter::HdfWriter().
|
static |
Definition at line 63 of file HdfWriter.cpp.
References default_compression_factor, OGS_FATAL, and prependDimension().
Referenced by MeshLib::IO::HdfWriter::HdfWriter().
|
static |
Definition at line 55 of file HdfWriter.cpp.
Referenced by createDataSet(), and writeDataSet().
|
static |
Assumes a dataset is already opened by createDatasetFunction.
Defines what (nodes_data, data_type) will be written how (data subsections: data_dims, offset_dims, max_dims, chunk_dims, time) where (dataset and dataset_name)
Definition at line 115 of file HdfWriter.cpp.
References MeshLib::IO::createHDF5TransferPolicy(), OGS_FATAL, and prependDimension().
Referenced by MeshLib::IO::HdfWriter::HdfWriter(), and MeshLib::IO::HdfWriter::writeStep().
|
static |
Write vector with time values into open hdf file.
In contrast to all other hdf write methods writing is only performed by one process (is_file_manager_true). file handle is to an already opened file
Definition at line 170 of file HdfWriter.cpp.
Referenced by MeshLib::IO::HdfWriter::~HdfWriter().
|
static |
Definition at line 31 of file HdfWriter.cpp.
Referenced by createDataSet().