class
ParticleWriterCharm++ group used to output particle data to file in parallel using H5Part and MPI-IO.
Contents
Constructors, destructors, conversion operators
- ParticleWriter(const std::string& filename) explicit
Public functions
- void npar(std::size_t n, CkCallback c)
- Chares contribute their number of particles they will output on my node.
-
void writeCoords(uint64_t it,
const std::vector<tk::
real>& x, const std::vector<tk:: real>& y, const std::vector<tk:: real>& z, CkCallback c) - Write particle coordinates to file.
Function documentation
tk:: ParticleWriter:: ParticleWriter(const std::string& filename) explicit
Parameters | |
---|---|
filename in | Filename of particle output file |
Constructor
void tk:: ParticleWriter:: npar(std::size_t n,
CkCallback c)
Chares contribute their number of particles they will output on my node.
Parameters | |
---|---|
n in | Number of particles will be contributed |
c in | Function to continue with |
void tk:: ParticleWriter:: writeCoords(uint64_t it,
const std::vector<tk:: real>& x,
const std::vector<tk:: real>& y,
const std::vector<tk:: real>& z,
CkCallback c)
Write particle coordinates to file.
Parameters | |
---|---|
it in | Output iteration count |
x in | X coordinates of particles |
y in | Y coordinates of particles |
z in | Z coordinates of particles |
c in | Function to continue with after the write is complete |