GEOSX
|
Perform buffered history I/O for a single type(really just output) on using HDF5. More...
#include <HDFHistoryIO.hpp>
Public Member Functions | |
HDFHistoryIO (string const &filename, localIndex rank, std::vector< localIndex > const &dims, string const &name, std::type_index typeId, localIndex writeHead=0, localIndex initAlloc=1, localIndex overallocMultiple=2, MPI_Comm comm=MPI_COMM_GEOSX) | |
Constructor. More... | |
HDFHistoryIO (string const &filename, const HistoryMetadata &spec, localIndex writeHead=0, localIndex initAlloc=1, localIndex overallocMultiple=2, MPI_Comm comm=MPI_COMM_GEOSX) | |
Constructor. More... | |
virtual | ~HDFHistoryIO () |
Destructor. | |
virtual buffer_unit_type * | getBufferHead () override |
Get the head of the internal history storage buffer. More... | |
virtual void | init (bool existsOkay) override |
Perform and intialization needed for time-history output. More... | |
virtual void | write () override |
Write the buffered history data to the output target. More... | |
virtual void | compressInFile () override |
Ensure the repressentation of the data in the output target is dense and terse. More... | |
virtual void | updateCollectingCount (localIndex count) override |
Update the number of items being stored for IO in this object. More... | |
localIndex | getBufferedCount () override |
Query the number of history states currently stored in the internal buffer. More... | |
Public Member Functions inherited from geos::BufferedHistoryIO | |
virtual | ~BufferedHistoryIO () |
Destructor. | |
Perform buffered history I/O for a single type(really just output) on using HDF5.
Definition at line 32 of file HDFHistoryIO.hpp.
geos::HDFHistoryIO::HDFHistoryIO | ( | string const & | filename, |
localIndex | rank, | ||
std::vector< localIndex > const & | dims, | ||
string const & | name, | ||
std::type_index | typeId, | ||
localIndex | writeHead = 0 , |
||
localIndex | initAlloc = 1 , |
||
localIndex | overallocMultiple = 2 , |
||
MPI_Comm | comm = MPI_COMM_GEOSX |
||
) |
Constructor.
[in] | filename | The filename to perform history output to. |
[in] | rank | The rank of the history data being collected. |
[in] | dims | The dimensional extent for each dimension of the history data being collected. |
[in] | name | The name to use to create/modify the dataset for the history data. |
[in] | typeId | The std::type_index(typeid(T)) of the underlying data type. |
[in] | writeHead | How many time history states have been written to the file (used on restart and to compress data on exit). |
[in] | initAlloc | How many states to preallocate the internal buffer to hold. |
[in] | overallocMultiple | Integer to scale the internal buffer when we fill the existing space. |
[in] | comm | A communicator where every rank will participate in writting to the output file. |
|
inline |
Constructor.
[in] | filename | The filename to perform history output to. |
[in] | spec | HistoryMetadata to use to call the other constructor. |
[in] | writeHead | How many time states have been written to the file (used on restart and to compress data on exit). |
[in] | initAlloc | How many states to preallocate the internal buffer to hold. |
[in] | overallocMultiple | Integer to scale the internal buffer when we fill the existing space. |
[in] | comm | A communicator where every rank will participate in writing to the output file. |
Definition at line 66 of file HDFHistoryIO.hpp.
|
overridevirtual |
Ensure the repressentation of the data in the output target is dense and terse.
Implements geos::BufferedHistoryIO.
|
inlineoverridevirtual |
Query the number of history states currently stored in the internal buffer.
Implements geos::BufferedHistoryIO.
Definition at line 100 of file HDFHistoryIO.hpp.
|
overridevirtual |
Get the head of the internal history storage buffer.
Implements geos::BufferedHistoryIO.
|
overridevirtual |
Perform and intialization needed for time-history output.
[in] | existsOkay | Whether it is acceptable for the intended output target to already exist ( false on start from scratch, true on restart ). |
Implements geos::BufferedHistoryIO.
|
overridevirtual |
Update the number of items being stored for IO in this object.
count | [in] The new number of items being collected |
Implements geos::BufferedHistoryIO.
|
overridevirtual |
Write the buffered history data to the output target.
Implements geos::BufferedHistoryIO.