|
ESyS-Particle
2.3.4
|
base class for broadcast commands More...
#include <BroadCast_cmd.h>


Public Member Functions | |
| BroadcastCommand (const MpiRankAndComm &rankAndComm, int cmdId) | |
| virtual | ~BroadcastCommand () |
| 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 () |
Private Attributes | |
| int | m_commandId |
| CVarMPIBuffer | m_varBuffer |
| CMPIBarrier | m_barrier |
| CMPILCmdBuffer | m_cmdBuffer |
base class for broadcast commands
| BroadcastCommand::BroadcastCommand | ( | const MpiRankAndComm & | rankAndComm, |
| int | cmdId | ||
| ) |
|
inlinevirtual |
| void BroadcastCommand::append | ( | const TmplData & | basicTypeData | ) |
Appends specified argument data (basic type) to the buffer.
References CVarMPIBuffer::append(), and m_varBuffer.
Referenced by CLatticeMaster::addDamping(), CLatticeMaster::addMesh2DIG(), CLatticeMaster::addPairIG(), CLatticeMaster::addSphereBody(), CLatticeMaster::addTaggedPairIG(), CLatticeMaster::addTaggedWallIG(), CLatticeMaster::addTriMeshIG(), CLatticeMaster::addWall(), SIGCommand::appendBuoyancyIGP(), BondedMesh2DIGCommand::appendGapBuildPrms(), BondedTriMeshIGCommand::appendGapBuildPrms(), SIGCommand::appendGravityIGP(), BondedMesh2DIGCommand::appendMesh2DParam(), BondedMesh2DIGCommand::appendTagBuildPrms(), BondedTriMeshIGCommand::appendTagBuildPrms(), BondedTriMeshIGCommand::appendTriMeshPrms(), GetFaceRefCommand::GetFaceRefCommand(), GetNodeRefCommand::GetNodeRefCommand(), CLatticeMaster::getSphereBodyForce(), CLatticeMaster::getSphereBodyPosn(), CLatticeMaster::getWallForce(), CLatticeMaster::getWallPosn(), CLatticeMaster::initializeConsole(), CLatticeMaster::removeIG(), CLatticeMaster::setConsoleBuffered(), CLatticeMaster::setConsoleFilename(), CLatticeMaster::setTimeStepSize(), CLatticeMaster::setVerbosity(), CLatticeMaster::translateMeshBy(), CLatticeMaster::visitMesh2dEdgeStress(), and CLatticeMaster::visitTriMeshFaceForce().


| void BroadcastCommand::appendTypeAndName | ( | const TmplData & | namedWithType | ) |
Appends namedWithType.getTypeString() and namedWithType.getName() strings to the data buffer.
References CVarMPIBuffer::append(), and m_varBuffer.
Referenced by CLatticeMaster::addMesh2DIG(), CLatticeMaster::addTriMeshIG(), IGPCommand::appendIGP(), RotIGPCommand::appendIGP(), and TaggedIGPCommand::appendIGP().


| void BroadcastCommand::broadcast | ( | ) |
Broadcasts command and data buffer, then does a barrier wait.
References broadcastBuffer(), broadcastCommand(), and wait().
Referenced by CLatticeMaster::addBondedMesh2DIG(), CLatticeMaster::addBondedTriMeshIG(), CLatticeMaster::addDamping(), CLatticeMaster::addMesh2DIG(), CLatticeMaster::addPairIG(), CLatticeMaster::addSingleIG(), CLatticeMaster::addSphereBody(), CLatticeMaster::addSphereBodyIG(), CLatticeMaster::addTaggedPairIG(), CLatticeMaster::addTaggedWallIG(), CLatticeMaster::addTriMeshIG(), CLatticeMaster::addWall(), CLatticeMaster::addWallIG(), CLatticeMaster::getSphereBodyForce(), CLatticeMaster::getSphereBodyPosn(), CLatticeMaster::getWallForce(), CLatticeMaster::getWallPosn(), CLatticeMaster::initializeConsole(), CLatticeMaster::removeIG(), CLatticeMaster::setConsoleBuffered(), CLatticeMaster::setConsoleFilename(), CLatticeMaster::setTimeStepSize(), CLatticeMaster::setVerbosity(), CLatticeMaster::translateMeshBy(), and CLatticeMaster::visitMesh2dNodeReferences().


| void BroadcastCommand::broadcastBuffer | ( | ) |
Broadcasts the data buffer.
References CVarMPIBuffer::broadcast(), and m_varBuffer.
Referenced by broadcast(), CLatticeMaster::visitMesh2dEdgeStress(), and CLatticeMaster::visitTriMeshFaceForce().


| void BroadcastCommand::broadcastCommand | ( | ) |
Broadcasts the command (ie the command id).
References CMPILCmdBuffer::broadcast(), getCommandId(), and m_cmdBuffer.
Referenced by broadcast(), CLatticeMaster::getNumParticles(), CLatticeMaster::visitMesh2dEdgeStress(), CLatticeMaster::visitParticlesOfType(), and CLatticeMaster::visitTriMeshFaceForce().


| const int & BroadcastCommand::getCommandId | ( | ) | const |
Returns the command id of this broadcast-command.
References m_commandId.
Referenced by broadcastCommand().

| void BroadcastCommand::packInto | ( | const TmplPackable & | packable | ) |
Packs the specified data into the data-buffer.
References m_varBuffer.
Referenced by CLatticeMaster::addDamping(), CLatticeMaster::addSphereBodyIG(), CLatticeMaster::addTaggedWallIG(), CLatticeMaster::addWallIG(), SIGCommand::appendBuoyancyIGP(), and SIGCommand::appendGravityIGP().

| void BroadcastCommand::wait | ( | const std::string & | barrierName | ) |
Barrier wait.
References m_barrier, and CMPIBarrier::wait().
Referenced by broadcast(), CLatticeMaster::getNumParticles(), CLatticeMaster::visitMesh2dEdgeStress(), CLatticeMaster::visitParticlesOfType(), and CLatticeMaster::visitTriMeshFaceForce().


|
private |
Referenced by wait().
|
private |
Referenced by broadcastCommand().
|
private |
Referenced by getCommandId().
|
private |
Referenced by append(), appendTypeAndName(), broadcastBuffer(), and packInto().