Geant4  10.01.p03
G4MPIRunMerger Class Reference

#include <G4MPIRunMerger.hh>

+ Collaboration diagram for G4MPIRunMerger:

Public Member Functions

 G4MPIRunMerger (const G4Run *aRun, G4int destination=G4MPImanager::kRANK_MASTER, G4int verbosity=0)
 
virtual ~G4MPIRunMerger ()
 
void SetRun (G4Run *r)
 
const G4RunGetRun () const
 
void SetDestinationRank (G4int i)
 
G4int GetDestinationRank () const
 
G4int GetCommSize () const
 
virtual void Merge ()
 
void SetVerbosity (G4int ver)
 
G4int GetVerbosity () const
 

Protected Member Functions

virtual void Send ()
 
virtual void Receive (G4int rank)
 
void SendDouble (G4double *val, G4int size=1)
 
void SendInt (G4int *val, G4int size=1)
 
void ReceiveDouble (G4int rank, G4double *val, G4int size=1)
 
void ReceiveInt (G4int rank, G4int *val, G4int size=1)
 

Protected Attributes

G4int destinationRank
 
G4Runrun
 
G4int commSize
 
MPI::Intracomm COMM_G4COMMAND_
 
G4int verbose
 

Detailed Description

Definition at line 32 of file G4MPIRunMerger.hh.

Constructor & Destructor Documentation

G4MPIRunMerger::G4MPIRunMerger ( const G4Run aRun,
G4int  destination = G4MPImanager::kRANK_MASTER,
G4int  verbosity = 0 
)

Definition at line 29 of file G4MPIRunMerger.cc.

virtual G4MPIRunMerger::~G4MPIRunMerger ( )
inlinevirtual

Definition at line 37 of file G4MPIRunMerger.hh.

Member Function Documentation

G4int G4MPIRunMerger::GetCommSize ( ) const
inline

Definition at line 42 of file G4MPIRunMerger.hh.

References commSize.

G4int G4MPIRunMerger::GetDestinationRank ( ) const
inline

Definition at line 41 of file G4MPIRunMerger.hh.

References destinationRank.

const G4Run* G4MPIRunMerger::GetRun ( ) const
inline

Definition at line 39 of file G4MPIRunMerger.hh.

References run.

G4int G4MPIRunMerger::GetVerbosity ( ) const
inline

Definition at line 45 of file G4MPIRunMerger.hh.

References verbose.

void G4MPIRunMerger::Merge ( )
virtual

Definition at line 97 of file G4MPIRunMerger.cc.

References COMM_G4COMMAND_, commSize, destinationRank, DMSG, Receive(), and Send().

+ Here is the call graph for this function:

void G4MPIRunMerger::Receive ( G4int  rank)
protectedvirtual

Definition at line 77 of file G4MPIRunMerger.cc.

References DMSG, G4Run::GetNumberOfEvent(), G4Run::Merge(), ReceiveInt(), G4Run::RecordEvent(), and run.

Referenced by Merge().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4MPIRunMerger::ReceiveDouble ( G4int  rank,
G4double val,
G4int  size = 1 
)
protected
void G4MPIRunMerger::ReceiveInt ( G4int  rank,
G4int val,
G4int  size = 1 
)
protected

Definition at line 62 of file G4MPIRunMerger.cc.

References COMM_G4COMMAND_, DMSG, G4FFGEnumerations::INT, and G4MPImanager::kTAG_DATA.

Referenced by Receive().

+ Here is the caller graph for this function:

void G4MPIRunMerger::Send ( )
protectedvirtual

Definition at line 69 of file G4MPIRunMerger.cc.

References DMSG, G4Run::GetNumberOfEvent(), run, and SendInt().

Referenced by Merge().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4MPIRunMerger::SendDouble ( G4double val,
G4int  size = 1 
)
protected
void G4MPIRunMerger::SendInt ( G4int val,
G4int  size = 1 
)
protected

Definition at line 47 of file G4MPIRunMerger.cc.

References COMM_G4COMMAND_, destinationRank, DMSG, G4FFGEnumerations::INT, and G4MPImanager::kTAG_DATA.

Referenced by Send().

+ Here is the caller graph for this function:

void G4MPIRunMerger::SetDestinationRank ( G4int  i)
inline

Definition at line 40 of file G4MPIRunMerger.hh.

References destinationRank.

void G4MPIRunMerger::SetRun ( G4Run r)
inline

Definition at line 38 of file G4MPIRunMerger.hh.

References run.

void G4MPIRunMerger::SetVerbosity ( G4int  ver)
inline

Definition at line 44 of file G4MPIRunMerger.hh.

References verbose.

Member Data Documentation

MPI::Intracomm G4MPIRunMerger::COMM_G4COMMAND_
protected

Definition at line 57 of file G4MPIRunMerger.hh.

Referenced by Merge(), ReceiveDouble(), ReceiveInt(), SendDouble(), and SendInt().

G4int G4MPIRunMerger::commSize
protected

Definition at line 56 of file G4MPIRunMerger.hh.

Referenced by GetCommSize(), and Merge().

G4int G4MPIRunMerger::destinationRank
protected

Definition at line 54 of file G4MPIRunMerger.hh.

Referenced by GetDestinationRank(), Merge(), SendDouble(), SendInt(), and SetDestinationRank().

G4Run* G4MPIRunMerger::run
protected

Definition at line 55 of file G4MPIRunMerger.hh.

Referenced by GetRun(), Receive(), Send(), and SetRun().

G4int G4MPIRunMerger::verbose
protected

Definition at line 58 of file G4MPIRunMerger.hh.

Referenced by GetVerbosity(), and SetVerbosity().


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