Just like MPIIOWriter, this class will generate snapshots of the simulation for checkpoint/restart capabilities. More...
#include <parallelmpiiowriter.h>
Inherits Clonable< ParallelWriter< CELL_TYPE >, ParallelMPIIOWriter< CELL_TYPE > >.
Public Types | |
typedef ParallelWriter < CELL_TYPE >::GridType | GridType |
typedef APITraits::SelectTopology < CELL_TYPE >::Value | Topology |
Public Member Functions | |
ParallelMPIIOWriter (const std::string &prefix, const unsigned period, const unsigned maxSteps, const MPI_Comm &communicator=MPI_COMM_WORLD) | |
virtual void | stepFinished (const GridType &grid, const Region< Topology::DIM > &validRegion, const Coord< Topology::DIM > &globalDimensions, unsigned step, WriterEvent event, std::size_t rank, bool lastCall) |
Static Public Attributes | |
static const int | DIM = Topology::DIM |
Private Member Functions | |
std::string | filename (unsigned step) const |
Private Attributes | |
unsigned | maxSteps |
MPI_Comm | comm |
Friends | |
class | ParallelMPIIOWriterTest |
Just like MPIIOWriter, this class will generate snapshots of the simulation for checkpoint/restart capabilities.
Use this class for parallel runs. Consider MPIIOInitializer for restarting from a snapshot.
typedef ParallelWriter<CELL_TYPE>::GridType LibGeoDecomp::ParallelMPIIOWriter< CELL_TYPE >::GridType |
Reimplemented from LibGeoDecomp::ParallelWriter< CELL_TYPE >.
typedef APITraits::SelectTopology<CELL_TYPE>::Value LibGeoDecomp::ParallelMPIIOWriter< CELL_TYPE >::Topology |
Reimplemented from LibGeoDecomp::ParallelWriter< CELL_TYPE >.
LibGeoDecomp::ParallelMPIIOWriter< CELL_TYPE >::ParallelMPIIOWriter | ( | const std::string & | prefix, | |
const unsigned | period, | |||
const unsigned | maxSteps, | |||
const MPI_Comm & | communicator = MPI_COMM_WORLD | |||
) | [inline] |
std::string LibGeoDecomp::ParallelMPIIOWriter< CELL_TYPE >::filename | ( | unsigned | step | ) | const [inline, private] |
References LibGeoDecomp::ParallelWriter< CELL_TYPE >::prefix.
Referenced by LibGeoDecomp::ParallelMPIIOWriter< CELL_TYPE >::stepFinished().
virtual void LibGeoDecomp::ParallelMPIIOWriter< CELL_TYPE >::stepFinished | ( | const GridType & | grid, | |
const Region< Topology::DIM > & | validRegion, | |||
const Coord< Topology::DIM > & | globalDimensions, | |||
unsigned | step, | |||
WriterEvent | event, | |||
std::size_t | rank, | |||
bool | lastCall | |||
) | [inline, virtual] |
friend class ParallelMPIIOWriterTest [friend] |
MPI_Comm LibGeoDecomp::ParallelMPIIOWriter< CELL_TYPE >::comm [private] |
const int LibGeoDecomp::ParallelMPIIOWriter< CELL_TYPE >::DIM = Topology::DIM [static] |
unsigned LibGeoDecomp::ParallelMPIIOWriter< CELL_TYPE >::maxSteps [private] |