ESyS-Particle  2.3.4
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::CheckPointer ( esys::lsm::CheckPointable checkPointable,
MPI_Comm  mpiComm = MPI_COMM_WORLD 
)

◆ ~CheckPointer()

CheckPointer::~CheckPointer ( )
virtual

Member Function Documentation

◆ getMpiComm()

MPI_Comm CheckPointer::getMpiComm ( ) const

References m_mpiComm.

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

Here is the caller graph for this function:

◆ loadCheckPoint()

void CheckPointer::loadCheckPoint ( )
virtual

◆ save()

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:

◆ saveDump()

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:

◆ saveRestartable()

void CheckPointer::saveRestartable ( )
virtual

◆ saveThroughMaster()

void CheckPointer::saveThroughMaster ( TML_Comm comm)
virtual

References console, Console::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:

◆ setMpiComm()

void CheckPointer::setMpiComm ( MPI_Comm  mpiComm)

References m_mpiComm.

Referenced by CSubLatticeControler::initMPI().

Here is the caller graph for this function:

Member Data Documentation

◆ m_mpiComm

MPI_Comm CheckPointer::m_mpiComm
private

Referenced by getMpiComm(), and setMpiComm().

◆ m_pCheckPointable

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

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