24#include <opm/simulators/utils/ParallelCommunication.hpp>
53 HDF5File(
const std::string& fileName,
55 Parallel::Communication comm);
66 void write(
const std::string& group,
67 const std::string&
dset,
68 const std::vector<char>&
buffer,
77 void read(
const std::string& group,
78 const std::string&
dset,
84 std::vector<std::string>
list(
const std::string& group)
const;
92 const std::vector<char>&
buffer,
93 const std::string&
dset)
const;
100 const std::vector<char>&
buffer,
101 const std::string& group,
102 const std::string&
dset)
const;
117 Parallel::Communication comm_;
Class handling simple output to HDF5.
Definition HDF5File.hpp:34
void write(const std::string &group, const std::string &dset, const std::vector< char > &buffer, DataSetMode mode=DataSetMode::PROCESS_SPLIT) const
Write a char buffer to a specified location in file.
Definition HDF5File.cpp:99
OpenMode
Enumeration of file opening modes.
Definition HDF5File.hpp:37
@ OVERWRITE
Overwrite and write to an existing file.
@ READ
Open existing file for reading.
@ APPEND
Append to an existing file (creates new if not)
~HDF5File()
Destructor clears up any opened files.
Definition HDF5File.cpp:92
DataSetMode
Enumeration of dataset modes.
Definition HDF5File.hpp:44
@ PROCESS_SPLIT
One separate data set for each parallel process.
@ ROOT_ONLY
A single dataset created at the root process.
void read(const std::string &group, const std::string &dset, std::vector< char > &buffer, DataSetMode mode=DataSetMode::PROCESS_SPLIT) const
Read a char buffer from a specified location in file.
Definition HDF5File.cpp:154
std::vector< std::string > list(const std::string &group) const
Lists the entries in a given group.
Definition HDF5File.cpp:175
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:43
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:240