class
H5PartWriterContents
H5Part particles data data writer
Particles data writer class facilitating writing particle coordinates and associated particle fields into HDF5-based H5Part data files in parallel, using MPI-IO.
Constructors, destructors, conversion operators
- H5PartWriter(const std::string& filename) explicit
- Constructor: create/open H5Part file.
Public functions
-
void writeCoords(uint64_t it,
const std::vector<tk::
real>& x, const std::vector<tk:: real>& y, const std::vector<tk:: real>& z) const - Write particle coordinates to H5Part file.
Function documentation
tk:: H5PartWriter:: H5PartWriter(const std::string& filename) explicit
Constructor: create/open H5Part file.
Parameters | |
---|---|
filename in | File to open as H5Part file |
It is okay to call this constructor with empty filename. In that case no IO will be performed. This is basically a punt to enable skipping H5Part I/O. Particles are a highly experimental feature at this point.
void tk:: H5PartWriter:: writeCoords(uint64_t it,
const std::vector<tk:: real>& x,
const std::vector<tk:: real>& y,
const std::vector<tk:: real>& z) const
Write particle coordinates to H5Part file.
Parameters | |
---|---|
it in | Iteration number |
x in | X coordinates of particles |
y in | Y coordinates of particles |
z in | Z coordinates of particles |