29 #include "G4MPImanager.hh" 30 #include "G4MPIsession.hh" 32 #ifdef G4MULTITHREADED 33 #include "G4MTRunManager.hh" 35 #include "G4RunManager.hh" 38 #include "G4UImanager.hh" 40 #include "G4VisExecutive.hh" 42 #include "ActionInitialization.hh" 44 #include "FTFP_BERT.hh" 45 #include "G4ScoringManager.hh" 46 int main(
int argc,
char** argv)
52 G4MPImanager* g4MPI =
new G4MPImanager(argc, argv);
56 G4MPIsession*
session = g4MPI-> GetMPIsession();
61 prompt +=
"[40;31m(%s)[40;36m[%/][00;30m:";
62 session-> SetPrompt(prompt);
67 #ifdef G4MULTITHREADED_DISABLE //ROOT ISSUES WITH MT, SEE exMPI03 FOR A MT 68 G4MTRunManager* runManager =
new G4MTRunManager();
69 runManager-> SetNumberOfThreads(4);
71 G4RunManager* runManager =
new G4RunManager();
76 runManager-> SetUserInitialization(
new FTFP_BERT);
77 runManager-> SetUserInitialization(
new ActionInitialization);
81 G4VisExecutive* visManager =
new G4VisExecutive;
90 session-> SessionStart();
static G4UIterminal * session
int main(int argc, char **argv)
A MPI example code.