19 #ifndef GEOSX_HDFFILE_HPP_ 20 #define GEOSX_HDFFILE_HPP_ 23 #include "codingUtilities/traits.hpp" 25 #include "mpiCommunications/MpiWrapper.hpp" 47 virtual operator hid_t() {
return 0; }
58 exists = H5Gget_objinfo( this->
operator hid_t(), name.c_str(), 0, NULL );
78 HDFFile(
string const & fnm,
bool deleteExisting,
bool parallelAccess, MPI_Comm comm );
89 virtual operator hid_t() final {
return m_fileId; }
124 std::vector< localIndex >
const & dims,
126 std::type_index typeId,
162 virtual void init(
bool existsOkay )
override;
165 virtual void write( )
override;
168 virtual void compressInFile( )
override;
174 inline void resizeFileIfNeeded(
localIndex bufferedCount );
177 virtual void resizeBuffer( )
override;
203 std::vector< hsize_t > m_dims;
235 std::vector< localIndex >
const & dims,
237 std::type_index typeId,
273 virtual void init(
bool existsOkay )
override;
276 virtual void write( )
override;
279 virtual void compressInFile( )
override;
285 inline void resizeFileIfNeeded(
localIndex bufferedCount );
288 virtual void resizeBuffer( )
override;
310 std::vector< hsize_t > m_dims;
long long int globalIndex
Global index type (for indexing objects across MPI partitions).
HDFSerialHistIO(string const &filename, const HistoryMetadata &spec, localIndex writeHead=0, localIndex initAlloc=2, localIndex overallocMultiple=2, MPI_Comm comm=MPI_COMM_GEOSX)
Constructor.
Perform buffered history I/O for a single type(really just output) on using HDF5 into multiple files ...
An abstract class for performing buffered history output.
virtual ~HDFHistIO()
Destructor.
Contains the implementation of LvArray::Array.
int MPI_COMM_GEOSX
Global MPI communicator used by GEOSX.
HDFHistIO(string const &filename, const HistoryMetadata &spec, localIndex writeHead=0, localIndex initAlloc=2, localIndex overallocMultiple=2, MPI_Comm comm=MPI_COMM_GEOSX)
Constructor.
Perform buffered history I/O for a single type(really just output) on using HDF5. ...
An abstract class representing an HDF output target.
std::ptrdiff_t localIndex
Local index type (for indexing objects within an MPI partition).
virtual bool CheckInTarget(const string &name)
Whether a dataset/group with the specified name exists in the target.
virtual ~HDFSerialHistIO()
Destructor.
A minimal class to specify information about time history information being collected and output...