ESyS-Particle  4.0.1
Public Member Functions | List of all members
CSubLatticeControler Class Reference

class for control of a SubLattice More...

#include <SubLatticeControler.h>

Inheritance diagram for CSubLatticeControler:
Inheritance graph
[legend]
Collaboration diagram for CSubLatticeControler:
Collaboration graph
[legend]

Public Member Functions

void initMPI ()
void makeLattice ()
void initLattice ()
void initLatticeCirc ()
void init2DTriangularLocal ()
void init3DTriangularLocal ()
void searchNeighbors ()
void performTiming ()
void saveTimingData ()
void getIdParticleData ()
void setTimeStepSize ()
void setTimingFileName (const std::string &timingFileName)
const std::string & getTimingFileName () const
void do2dCalculations ()
void getNumParticles ()
void findParticleNearestToPoint ()
void getParticlePosn ()
void moveSingleParticle ()
void translateMeshBy ()
void run ()
void setVerbosity ()
virtual void saveCheckPointData (std::ostream &oStream)
virtual void saveSnapShotData (std::ostream &oStream)
virtual void loadCheckPointData (std::istream &iStream)

Additional Inherited Members

- Private Member Functions inherited from esys::lsm::CheckPointable
virtual void saveCheckPointData (std::ostream &oStream)=0
virtual void saveSnapShotData (std::ostream &oStream)
virtual void loadCheckPointData (std::istream &iStream)=0

Detailed Description

class for control of a SubLattice

Does initialisation and control of a TSubLattice and comunicates with the TLatticeMaster

Author
Steffen Abe $Revision$ $Date$

Member Function Documentation

void CSubLatticeControler::initLattice ( )

Initialize lattice. All boundaries are assumed to be open, i.e. not circular. Recieves all necessary data from Master

References BasicCon::Critical(), TML_Comm::recv_broadcast_cont_packed(), TML_Comm::send_gather(), and BasicCon::XDebug().

Referenced by run().

Here is the call graph for this function:

Here is the caller graph for this function:

void CSubLatticeControler::initLatticeCirc ( )

Initialize lattice with at least one circular boundary condition. Receives all necessary data from Master

References BasicCon::Debug(), BasicCon::Error(), TML_Comm::recv_broadcast_cont(), TML_Comm::recv_broadcast_cont_packed(), TML_Comm::send_gather(), and BasicCon::XDebug().

Referenced by run().

Here is the call graph for this function:

Here is the caller graph for this function:

void CSubLatticeControler::initMPI ( )

Initialize MPI

References TML_Comm::barrier(), and TML_Comm::setComm().

Here is the call graph for this function:

void CSubLatticeControler::makeLattice ( )

make a new Lattice of the correct type

Todo:
make it throw an exeption if it fails

References BasicCon::Debug(), and CVarMPIBuffer::receiveBroadcast().

Referenced by run().

Here is the call graph for this function:

Here is the caller graph for this function:

void CSubLatticeControler::run ( )

gets command messages from master and calls the functions of SubLattice

References TML_Comm::barrier(), BasicCon::Debug(), BasicCon::Error(), ASubLattice::initComplex(), initLattice(), initLatticeCirc(), makeLattice(), CMPILCmdBuffer::receive(), CheckPointer::saveRestartable(), BasicCon::SetVerbose(), setVerbosity(), and translateMeshBy().

Here is the call graph for this function:

void CSubLatticeControler::setVerbosity ( )

Set console verbosity. On/off recieved from master.

References CVarMPIBuffer::pop_int(), CVarMPIBuffer::receiveBroadcast(), and BasicCon::SetVerbose().

Referenced by run().

Here is the call graph for this function:

Here is the caller graph for this function:

void CSubLatticeControler::translateMeshBy ( )

Translate mesh by given amount. Receive data from master and call function in SubLattice with the received parameters

References BasicCon::Debug(), CVarMPIBuffer::pop_string(), and CVarMPIBuffer::receiveBroadcast().

Referenced by run().

Here is the call graph for this function:

Here is the caller graph for this function:


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