Geant4
10.01.p02
|
#include <G4MPImanager.hh>
Public Types | |
enum | { kRANK_MASTER = 0 } |
enum | { kTAG_G4COMMAND = 100, kTAG_G4STATUS = 200, kTAG_G4SEED = 300, kTAG_DATA = 1000 } |
Static Public Member Functions | |
static G4MPImanager * | GetManager () |
Private Member Functions | |
DISALLOW_COPY_AND_ASSIGN (G4MPImanager) | |
void | Initialize () |
void | ParseArguments (G4int argc, char **argv) |
void | UpdateStatus () |
Private Attributes | |
G4MPImessenger * | messenger_ |
G4MPIsession * | session_ |
G4VMPIseedGenerator * | seed_generator_ |
G4MPIstatus * | status_ |
G4int | verbose_ |
G4bool | is_master_ |
G4bool | is_slave_ |
G4int | rank_ |
G4int | size_ |
MPI::Intracomm | COMM_G4COMMAND_ |
G4bool | qfcout_ |
std::ofstream | fscout_ |
G4bool | qinitmacro_ |
G4String | init_file_name_ |
G4bool | qbatchmode_ |
G4String | macro_file_name_ |
pthread_t | thread_id_ |
G4double | master_weight_ |
Static Private Attributes | |
static G4MPImanager * | g4mpi_ = NULL |
Definition at line 45 of file G4MPImanager.hh.
anonymous enum |
Enumerator | |
---|---|
kRANK_MASTER |
Definition at line 48 of file G4MPImanager.hh.
anonymous enum |
Enumerator | |
---|---|
kTAG_G4COMMAND | |
kTAG_G4STATUS | |
kTAG_G4SEED | |
kTAG_DATA |
Definition at line 50 of file G4MPImanager.hh.
G4MPImanager::G4MPImanager | ( | ) |
Definition at line 68 of file G4MPImanager.cc.
References Initialize().
G4MPImanager::G4MPImanager | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 78 of file G4MPImanager.cc.
References Initialize(), and ParseArguments().
G4MPImanager::~G4MPImanager | ( | ) |
Definition at line 89 of file G4MPImanager.cc.
References COMM_G4COMMAND_, Finalize(), fscout_, is_slave_, messenger_, qfcout_, session_, and status_.
Definition at line 416 of file G4MPImanager.cc.
References COMM_G4COMMAND_, is_master_, kRANK_MASTER, kTAG_G4COMMAND, and size_.
Definition at line 460 of file G4MPImanager.cc.
References G4UIcommand::ConvertToString(), G4cout, G4endl, G4RunManager::GetRunManager(), G4UImanager::GetUIpointer(), is_master_, master_weight_, size_, status_, and verbose_.
G4bool G4MPImanager::CheckThreadStatus | ( | ) |
Definition at line 325 of file G4MPImanager.cc.
References COMM_G4COMMAND_, is_master_, kRANK_MASTER, kTAG_G4STATUS, size_, and thread_id_.
Referenced by ExecuteBeamOnThread(), and ShowStatus().
|
private |
void G4MPImanager::DistributeSeeds | ( | ) |
Definition at line 287 of file G4MPImanager.cc.
References rank_, and seed_generator_.
Referenced by Initialize().
void G4MPImanager::ExecuteBeamOnThread | ( | const G4String & | command | ) |
Definition at line 385 of file G4MPImanager.cc.
References CheckThreadStatus(), FatalException, G4cout, G4endl, G4Exception(), is_master_, and thread_id_.
Definition at line 449 of file G4MPImanager.cc.
References qbatchmode_.
void G4MPImanager::ExecuteThreadCommand | ( | const G4String & | command | ) |
Definition at line 356 of file G4MPImanager.cc.
References fCommandSucceeded, fIllegalApplicationState, G4cerr, G4endl, G4UImanager::GetUIpointer(), and thread_id_.
|
inline |
Definition at line 199 of file G4MPImanager.hh.
References init_file_name_.
Referenced by G4MPIsession::SessionStart().
|
inline |
Definition at line 210 of file G4MPImanager.hh.
References macro_file_name_.
Referenced by G4MPIsession::SessionStart().
|
static |
Definition at line 103 of file G4MPImanager.cc.
References FatalException, G4Exception(), and g4mpi_.
Referenced by G4MPIrandomSeedGenerator::CheckDoubleCount(), G4VMPIsession::G4VMPIsession(), and G4MPIrandomSeedGenerator::GenerateSeeds().
|
inline |
Definition at line 223 of file G4MPImanager.hh.
References master_weight_.
Referenced by G4MPImessenger::GetCurrentValue().
|
inline |
Definition at line 153 of file G4MPImanager.hh.
References session_.
|
inline |
Definition at line 173 of file G4MPImanager.hh.
References rank_.
|
inline |
Definition at line 228 of file G4MPImanager.hh.
References seed_generator_.
|
inline |
Definition at line 178 of file G4MPImanager.hh.
References size_.
|
inline |
Definition at line 158 of file G4MPImanager.hh.
References verbose_.
Referenced by G4MPImessenger::GetCurrentValue().
|
private |
Definition at line 113 of file G4MPImanager.cc.
References COMM_G4COMMAND_, DistributeSeeds(), FatalException, G4Exception(), g4mpi_, is_master_, is_slave_, kRANK_MASTER, messenger_, rank_, seed_generator_, session_, size_, and status_.
Referenced by G4MPImanager().
|
inline |
Definition at line 205 of file G4MPImanager.hh.
References qbatchmode_.
|
inline |
Definition at line 193 of file G4MPImanager.hh.
References qinitmacro_.
|
inline |
Definition at line 183 of file G4MPImanager.hh.
References is_master_.
|
inline |
Definition at line 188 of file G4MPImanager.hh.
References is_slave_.
void G4MPImanager::JoinBeamOnThread | ( | ) |
Definition at line 407 of file G4MPImanager.cc.
References thread_id_.
|
private |
Definition at line 143 of file G4MPImanager.cc.
References Finalize(), fscout_, G4cerr, G4endl, init_file_name_, is_master_, is_slave_, macro_file_name_, qbatchmode_, qfcout_, qinitmacro_, rank_, ShowHelp(), and verbose_.
Referenced by G4MPImanager().
void G4MPImanager::Print | ( | const G4String & | message | ) |
Definition at line 532 of file G4MPImanager.cc.
References fscout_, is_master_, qfcout_, and rank_.
Referenced by ShowStatus().
|
inline |
Definition at line 215 of file G4MPImanager.hh.
References master_weight_.
Definition at line 317 of file G4MPImanager.cc.
References rank_.
|
inline |
Definition at line 163 of file G4MPImanager.hh.
References verbose_.
void G4MPImanager::ShowHelp | ( | ) | const |
Definition at line 546 of file G4MPImanager.cc.
References G4cout, G4endl, and is_slave_.
Referenced by ParseArguments().
void G4MPImanager::ShowSeeds | ( | ) |
Definition at line 294 of file G4MPImanager.cc.
References COMM_G4COMMAND_, G4cout, G4endl, is_master_, kRANK_MASTER, kTAG_G4SEED, rank_, and size_.
void G4MPImanager::ShowStatus | ( | ) |
Definition at line 238 of file G4MPImanager.cc.
References CheckThreadStatus(), COMM_G4COMMAND_, G4cout, G4endl, G4FFGEnumerations::INT, is_master_, G4MPIstatus::kNSIZE, kRANK_MASTER, kTAG_G4STATUS, Print(), size_, status_, and UpdateStatus().
|
private |
Definition at line 211 of file G4MPImanager.cc.
References G4State_EventProc, G4State_GeomClosed, G4RunManager::GetRunManager(), G4StateManager::GetStateManager(), rank_, and status_.
Referenced by ShowStatus().
void G4MPImanager::WaitBeamOn | ( | ) |
Definition at line 511 of file G4MPImanager.cc.
References COMM_G4COMMAND_, G4FFGEnumerations::INT, is_master_, kRANK_MASTER, kTAG_G4STATUS, qbatchmode_, and size_.
|
private |
Definition at line 133 of file G4MPImanager.hh.
Referenced by BcastCommand(), CheckThreadStatus(), Initialize(), ShowSeeds(), ShowStatus(), WaitBeamOn(), and ~G4MPImanager().
|
private |
Definition at line 137 of file G4MPImanager.hh.
Referenced by ParseArguments(), Print(), and ~G4MPImanager().
|
staticprivate |
Definition at line 115 of file G4MPImanager.hh.
Referenced by GetManager(), and Initialize().
|
private |
Definition at line 141 of file G4MPImanager.hh.
Referenced by GetInitFileName(), and ParseArguments().
|
private |
Definition at line 127 of file G4MPImanager.hh.
Referenced by BcastCommand(), BeamOn(), CheckThreadStatus(), ExecuteBeamOnThread(), Initialize(), IsMaster(), ParseArguments(), Print(), ShowSeeds(), ShowStatus(), and WaitBeamOn().
|
private |
Definition at line 128 of file G4MPImanager.hh.
Referenced by Initialize(), IsSlave(), ParseArguments(), ShowHelp(), and ~G4MPImanager().
|
private |
Definition at line 143 of file G4MPImanager.hh.
Referenced by GetMacroFileName(), and ParseArguments().
|
private |
Definition at line 149 of file G4MPImanager.hh.
Referenced by BeamOn(), GetMasterWeight(), and SetMasterWeight().
|
private |
Definition at line 116 of file G4MPImanager.hh.
Referenced by Initialize(), and ~G4MPImanager().
|
private |
Definition at line 142 of file G4MPImanager.hh.
Referenced by ExecuteMacroFile(), IsBatchMode(), ParseArguments(), and WaitBeamOn().
|
private |
Definition at line 136 of file G4MPImanager.hh.
Referenced by ParseArguments(), Print(), and ~G4MPImanager().
|
private |
Definition at line 140 of file G4MPImanager.hh.
Referenced by IsInitMacro(), and ParseArguments().
|
private |
Definition at line 129 of file G4MPImanager.hh.
Referenced by DistributeSeeds(), GetRank(), Initialize(), ParseArguments(), Print(), SetSeed(), ShowSeeds(), and UpdateStatus().
|
private |
Definition at line 120 of file G4MPImanager.hh.
Referenced by DistributeSeeds(), GetSeedGenerator(), and Initialize().
|
private |
Definition at line 117 of file G4MPImanager.hh.
Referenced by GetMPIsession(), Initialize(), and ~G4MPImanager().
|
private |
Definition at line 130 of file G4MPImanager.hh.
Referenced by BcastCommand(), BeamOn(), CheckThreadStatus(), GetSize(), Initialize(), ShowSeeds(), ShowStatus(), and WaitBeamOn().
|
private |
Definition at line 122 of file G4MPImanager.hh.
Referenced by BeamOn(), Initialize(), ShowStatus(), UpdateStatus(), and ~G4MPImanager().
|
private |
Definition at line 146 of file G4MPImanager.hh.
Referenced by CheckThreadStatus(), ExecuteBeamOnThread(), ExecuteThreadCommand(), and JoinBeamOnThread().
|
private |
Definition at line 124 of file G4MPImanager.hh.
Referenced by BeamOn(), GetVerbose(), ParseArguments(), and SetVerbose().