30 #include "G4MPImanager.hh" 31 #include "G4MPIsession.hh" 33 #ifdef G4MULTITHREADED 34 #include "G4MTRunManager.hh" 36 #include "G4RunManager.hh" 39 #include "G4UImanager.hh" 42 #include "G4VisExecutive.hh" 45 #include "ActionInitialization.hh" 47 #include "FTFP_BERT.hh" 48 #include "G4ScoringManager.hh" 49 int main(
int argc,
char** argv)
55 G4MPImanager* g4MPI =
new G4MPImanager(argc, argv);
59 G4MPIsession*
session = g4MPI-> GetMPIsession();
64 prompt +=
"[40;31m(%s)[40;36m[%/][00;30m:";
65 session-> SetPrompt(prompt);
70 #ifdef G4MULTITHREADED_DISABLE //ROOT ISSUES WITH MT, SEE exMPI03 FOR A MT 71 G4MTRunManager* runManager =
new G4MTRunManager();
72 runManager-> SetNumberOfThreads(4);
74 G4RunManager* runManager =
new G4RunManager();
79 runManager-> SetUserInitialization(
new FTFP_BERT);
80 runManager-> SetUserInitialization(
new ActionInitialization);
85 G4VisExecutive* visManager =
new G4VisExecutive;
95 session-> SessionStart();
static G4UIterminal * session
int main(int argc, char **argv)
A MPI example code.