HDF5Serializer.hpp
Go to the documentation of this file.
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. 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. @ PROCESS_SPLIT One separate data set for each parallel process. int lastReportStep() const Returns the last report step stored in file. std::vector< int > reportSteps() const Returns a list of report steps stored in restart file. void read(T &data, const std::string &group, const std::string &dset, HDF5File::DataSetMode mode=HDF5File::DataSetMode::PROCESS_SPLIT) Read data and deserialize from restart file. Definition: HDF5Serializer.hpp:83 HDF5Serializer(const std::string &fileName, HDF5File::OpenMode mode, Parallel::Communication comm) Definition: HDF5Serializer.hpp:39 void writeHeader(const std::string &simulator_name, const std::string &module_version, const std::string &time_stamp, const std::string &case_name, const std::string ¶ms, int num_procs) Writes a header to the file. void write(T &data, const std::string &group, const std::string &dset, HDF5File::DataSetMode mode=HDF5File::DataSetMode::PROCESS_SPLIT) Serialize and write data to restart file. Definition: HDF5Serializer.hpp:50 Dune::Communication< MPIComm > Communication Definition: ParallelCommunication.hpp:30 Definition: blackoilboundaryratevector.hh:37 |