#include "G4MPImanager.hh"
#include "G4MPIsession.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "ActionInitialization.hh"
#include "DetectorConstruction.hh"
#include "FTFP_BERT.hh"
#include "G4ScoringManager.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
| A MPI example code. More...
|
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
A MPI example code.
Definition at line 49 of file exMPI03.cc.
References Initialize(), and session.
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 71 G4MTRunManager* runManager =
new G4MTRunManager();
72 runManager-> SetNumberOfThreads(4);
74 G4RunManager* runManager =
new G4RunManager();
76 G4ScoringManager * scManager = G4ScoringManager::GetScoringManager();
77 scManager->SetVerboseLevel(1);
80 runManager-> SetUserInitialization(
new FTFP_BERT);
81 runManager-> SetUserInitialization(
new ActionInitialization);
86 G4VisExecutive* visManager =
new G4VisExecutive;
96 session-> SessionStart();
static G4UIterminal * session