Geant4
10.02.p02
|
#include <G4MPIscorerMerger.hh>
Public Member Functions | |
G4MPIscorerMerger () | |
G4MPIscorerMerger (G4ScoringManager *mgr, G4int destination=G4MPImanager::kRANK_MASTER, G4int verbosity=0) | |
virtual | ~G4MPIscorerMerger () |
void | SetDestinationRank (G4int i) |
void | SetScoringManager (G4ScoringManager *mgr) |
void | SetVerbosity (G4int ver) |
void | Merge () |
Protected Member Functions | |
void | SetupOutputBuffer (char *buff, G4int size, G4int position) |
void | DestroyBuffer () |
void | Pack (const G4ScoringManager *) |
Pack all meshes into buffer. More... | |
void | UnPackAndMerge (const G4ScoringManager *) |
void | Pack (const G4VScoringMesh *) |
Pack a single mesh. More... | |
void | UnPackAndMerge (G4VScoringMesh *) |
void | Pack (const HitMap *) |
Pack a single score map. More... | |
HitMap * | UnPackHitMap (const G4String &detName, const G4String &colName) |
G4int | CalculatePackSize (const G4ScoringManager *) const |
G4int | CalculatePackSize (const G4VScoringMesh *) const |
G4int | CalculatePackSize (const HitMap *) const |
void | Send (const unsigned int destination) |
void | Receive (const unsigned int source) |
Private Attributes | |
char * | outputBuffer |
G4int | outputBufferSize |
G4int | outputBufferPosition |
long | bytesSent |
G4bool | ownsBuffer |
G4ScoringManager * | scoringManager |
unsigned int | commSize |
unsigned int | destinationRank |
MPI::Intracomm | comm |
G4int | verbose |
Definition at line 37 of file G4MPIscorerMerger.hh.
G4MPIscorerMerger::G4MPIscorerMerger | ( | ) |
Definition at line 34 of file G4MPIscorerMerger.cc.
G4MPIscorerMerger::G4MPIscorerMerger | ( | G4ScoringManager * | mgr, |
G4int | destination = G4MPImanager::kRANK_MASTER , |
||
G4int | verbosity = 0 |
||
) |
Definition at line 40 of file G4MPIscorerMerger.cc.
|
virtual |
Definition at line 50 of file G4MPIscorerMerger.cc.
References outputBuffer, and ownsBuffer.
|
protected |
Definition at line 393 of file G4MPIscorerMerger.cc.
References DMSG, G4ScoringManager::GetMesh(), and G4ScoringManager::GetNumberOfMesh().
Referenced by CalculatePackSize(), and Send().
|
protected |
Definition at line 412 of file G4MPIscorerMerger.cc.
References CalculatePackSize(), DMSG, ele, G4VScoringMesh::GetScoreMap(), and name.
Definition at line 429 of file G4MPIscorerMerger.cc.
References DMSG, and G4THitsMap< T >::GetSize().
|
inlineprotected |
Definition at line 59 of file G4MPIscorerMerger.hh.
References outputBuffer, outputBufferPosition, outputBufferSize, and ownsBuffer.
Referenced by Merge().
void G4MPIscorerMerger::Merge | ( | ) |
Definition at line 87 of file G4MPIscorerMerger.cc.
References bytesSent, comm, commSize, destinationRank, DestroyBuffer(), DMSG, G4cout, G4endl, G4mpi::Merge(), Receive(), Send(), G4INCL::CrossSections::total(), and verbose.
Referenced by RunActionMaster::EndOfRunAction().
|
protected |
Pack all meshes into buffer.
Definition at line 223 of file G4MPIscorerMerger.cc.
References comm, DMSG, FatalException, G4Exception(), G4ScoringManager::GetMesh(), G4ScoringManager::GetNumberOfMesh(), outputBuffer, outputBufferPosition, and outputBufferSize.
Referenced by Pack(), and Send().
|
protected |
Pack a single mesh.
Definition at line 284 of file G4MPIscorerMerger.cc.
References comm, DMSG, ele, G4VScoringMesh::GetScoreMap(), name, G4InuclParticleNames::nn, outputBuffer, outputBufferPosition, outputBufferSize, and Pack().
|
protected |
Pack a single score map.
Definition at line 347 of file G4MPIscorerMerger.cc.
References comm, DMSG, G4FFGEnumerations::DOUBLE, G4THitsMap< T >::GetMap(), G4THitsMap< T >::GetSize(), G4FFGEnumerations::INT, outputBuffer, outputBufferPosition, and outputBufferSize.
|
protected |
Definition at line 168 of file G4MPIscorerMerger.cc.
References buffer, comm, DMSG, G4MPImanager::kTAG_CMDSCR, outputBuffer, outputBufferSize, ownsBuffer, scoringManager, SetupOutputBuffer(), Status(), and UnPackAndMerge().
Referenced by Merge().
|
protected |
Definition at line 196 of file G4MPIscorerMerger.cc.
References buffer, bytesSent, CalculatePackSize(), comm, DMSG, G4MPImanager::kTAG_CMDSCR, outputBuffer, outputBufferPosition, outputBufferSize, ownsBuffer, Pack(), scoringManager, and SetupOutputBuffer().
Referenced by Merge().
|
inline |
Definition at line 46 of file G4MPIscorerMerger.hh.
References destinationRank.
|
inline |
Definition at line 47 of file G4MPIscorerMerger.hh.
References scoringManager.
|
inlineprotected |
Definition at line 54 of file G4MPIscorerMerger.hh.
References outputBuffer, outputBufferPosition, outputBufferSize, and position.
Referenced by Receive(), and Send().
|
inline |
Definition at line 48 of file G4MPIscorerMerger.hh.
References verbose.
Referenced by RunActionMaster::EndOfRunAction().
|
protected |
Definition at line 246 of file G4MPIscorerMerger.cc.
References comm, FatalException, G4Exception(), G4ScoringManager::GetMesh(), G4ScoringManager::GetNumberOfMesh(), outputBuffer, outputBufferPosition, and outputBufferSize.
Referenced by Receive().
|
protected |
Definition at line 317 of file G4MPIscorerMerger.cc.
References G4VScoringMesh::Accumulate(), comm, DMSG, G4VScoringMesh::GetWorldName(), name, outputBuffer, outputBufferPosition, outputBufferSize, and UnPackHitMap().
|
protected |
Definition at line 372 of file G4MPIscorerMerger.cc.
References comm, DMSG, G4FFGEnumerations::DOUBLE, G4FFGEnumerations::INT, outputBuffer, outputBufferPosition, outputBufferSize, and G4THitsMap< T >::set().
Referenced by UnPackAndMerge().
|
private |
Definition at line 92 of file G4MPIscorerMerger.hh.
|
private |
Definition at line 97 of file G4MPIscorerMerger.hh.
Referenced by Merge(), Pack(), Receive(), Send(), UnPackAndMerge(), and UnPackHitMap().
|
private |
Definition at line 95 of file G4MPIscorerMerger.hh.
Referenced by Merge().
|
private |
Definition at line 96 of file G4MPIscorerMerger.hh.
Referenced by Merge(), and SetDestinationRank().
|
private |
Definition at line 89 of file G4MPIscorerMerger.hh.
Referenced by DestroyBuffer(), Pack(), Receive(), Send(), SetupOutputBuffer(), UnPackAndMerge(), UnPackHitMap(), and ~G4MPIscorerMerger().
|
private |
Definition at line 91 of file G4MPIscorerMerger.hh.
Referenced by DestroyBuffer(), Pack(), Send(), SetupOutputBuffer(), UnPackAndMerge(), and UnPackHitMap().
|
private |
Definition at line 90 of file G4MPIscorerMerger.hh.
Referenced by DestroyBuffer(), Pack(), Receive(), Send(), SetupOutputBuffer(), UnPackAndMerge(), and UnPackHitMap().
|
private |
Definition at line 93 of file G4MPIscorerMerger.hh.
Referenced by DestroyBuffer(), Receive(), Send(), and ~G4MPIscorerMerger().
|
private |
Definition at line 94 of file G4MPIscorerMerger.hh.
Referenced by Receive(), Send(), and SetScoringManager().
|
private |
Definition at line 98 of file G4MPIscorerMerger.hh.
Referenced by Merge(), and SetVerbosity().