ESyS-Particle
4.0.1
|
base class for broadcast commands More...
#include <BroadCast_cmd.h>
Public Member Functions | |
BroadcastCommand (const MpiRankAndComm &rankAndComm, int cmdId) | |
template<typename TmplData > | |
void | appendTypeAndName (const TmplData &namedWithType) |
template<typename TmplData > | |
void | append (const TmplData &basicTypeData) |
template<typename TmplPackable > | |
void | packInto (const TmplPackable &) |
const int & | getCommandId () const |
void | broadcastCommand () |
void | broadcastBuffer () |
void | wait (const std::string &barrierName) |
void | broadcast () |
base class for broadcast commands
void BroadcastCommand::append | ( | const TmplData & | basicTypeData | ) |
Appends specified argument data (basic type) to the buffer.
References CVarMPIBuffer::append().
Referenced by CLatticeMaster::addMesh2DIG(), CLatticeMaster::addTriMeshIG(), CLatticeMaster::addWall(), GetFaceRefCommand::GetFaceRefCommand(), GetNodeRefCommand::GetNodeRefCommand(), CLatticeMaster::getWallForce(), CLatticeMaster::getWallPosn(), CLatticeMaster::removeIG(), CLatticeMaster::setVerbosity(), and CLatticeMaster::translateMeshBy().
void BroadcastCommand::appendTypeAndName | ( | const TmplData & | namedWithType | ) |
Appends namedWithType.getTypeString() and namedWithType.getName() strings to the data buffer.
References CVarMPIBuffer::append().
Referenced by CLatticeMaster::addMesh2DIG(), and CLatticeMaster::addTriMeshIG().
void BroadcastCommand::broadcast | ( | ) |
Broadcasts command and data buffer, then does a barrier wait.
Referenced by CLatticeMaster::addBondedMesh2DIG(), CLatticeMaster::addBondedTriMeshIG(), CLatticeMaster::addMesh2DIG(), CLatticeMaster::addTriMeshIG(), CLatticeMaster::addWall(), CLatticeMaster::addWallIG(), CLatticeMaster::getWallForce(), CLatticeMaster::getWallPosn(), CLatticeMaster::removeIG(), CLatticeMaster::setVerbosity(), and CLatticeMaster::translateMeshBy().
void BroadcastCommand::broadcastBuffer | ( | ) |
Broadcasts the data buffer.
void BroadcastCommand::broadcastCommand | ( | ) |
Broadcasts the command (ie the command id).
const int & BroadcastCommand::getCommandId | ( | ) | const |
Returns the command id of this broadcast-command.
void BroadcastCommand::packInto | ( | const TmplPackable & | packable | ) |
Packs the specified data into the data-buffer.
Referenced by CLatticeMaster::addWallIG().
void BroadcastCommand::wait | ( | const std::string & | barrierName | ) |
Barrier wait.