tk::ParticleWriter class

Charm++ group used to output particle data to file in parallel using H5Part and MPI-IO.

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
in Number of particles will be contributed
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
in X coordinates of particles
in Y coordinates of particles
in Z coordinates of particles
in Function to continue with after the write is complete