ESyS-Particle  2.3
CheckPointer Class Reference

#include <CheckPointer.h>

Collaboration diagram for CheckPointer:

Public Member Functions

 CheckPointer (esys::lsm::CheckPointable &checkPointable, MPI_Comm mpiComm=MPI_COMM_WORLD)
 
virtual ~CheckPointer ()
 
virtual void saveRestartable ()
 
virtual void saveDump ()
 
virtual void saveThroughMaster (TML_Comm &)
 
virtual void loadCheckPoint ()
 
virtual void save (std::ostream &oStream)
 
MPI_Comm getMpiComm () const
 
void setMpiComm (MPI_Comm mpiComm)
 

Private Attributes

esys::lsm::CheckPointablem_pCheckPointable
 
MPI_Comm m_mpiComm
 

Detailed Description

Saves the state of a model.

Constructor & Destructor Documentation

CheckPointer::CheckPointer ( esys::lsm::CheckPointable checkPointable,
MPI_Comm  mpiComm = MPI_COMM_WORLD 
)
CheckPointer::~CheckPointer ( )
virtual

Member Function Documentation

MPI_Comm CheckPointer::getMpiComm ( ) const

References m_mpiComm.

Referenced by loadCheckPoint(), saveDump(), saveRestartable(), and saveThroughMaster().

Here is the caller graph for this function:

void CheckPointer::loadCheckPoint ( )
virtual
void CheckPointer::save ( std::ostream &  oStream)
virtual

Saves the state of a model to specified stream.

References m_pCheckPointable, and esys::lsm::CheckPointable::saveCheckPointData().

Referenced by saveThroughMaster().

Here is the call graph for this function:

Here is the caller graph for this function:

void CheckPointer::saveDump ( )
virtual

References CheckPointParams::getFileName(), getMpiComm(), m_pCheckPointable, CVarMPIBuffer::receiveBroadcast(), esys::lsm::CheckPointable::saveSnapShotData(), and CheckPointParams::unpackFrom().

Referenced by CSubLatticeControler::run().

Here is the call graph for this function:

Here is the caller graph for this function:

void CheckPointer::saveRestartable ( )
virtual
void CheckPointer::saveThroughMaster ( TML_Comm comm)
virtual

References console, BasicCon::Debug(), getMpiComm(), CVarMPIBuffer::receiveBroadcast(), save(), TML_Comm::send_gather(), CheckPointParams::unpackFrom(), and CMPIBarrier::wait().

Referenced by CSubLatticeControler::run().

Here is the call graph for this function:

Here is the caller graph for this function:

void CheckPointer::setMpiComm ( MPI_Comm  mpiComm)

References m_mpiComm.

Referenced by CSubLatticeControler::initMPI().

Here is the caller graph for this function:

Member Data Documentation

MPI_Comm CheckPointer::m_mpiComm
private

Referenced by getMpiComm(), and setMpiComm().

esys::lsm::CheckPointable* CheckPointer::m_pCheckPointable
private

The documentation for this class was generated from the following files: