Import Geant4 10.7.0 source tree
This commit is contained in:
@@ -31,11 +31,7 @@
|
||||
#include "B4dActionInitialization.hh"
|
||||
#include "B4Analysis.hh"
|
||||
|
||||
#ifdef G4MULTITHREADED
|
||||
#include "G4MTRunManager.hh"
|
||||
#else
|
||||
#include "G4RunManager.hh"
|
||||
#endif
|
||||
#include "G4RunManagerFactory.hh"
|
||||
|
||||
#include "G4UImanager.hh"
|
||||
#include "FTFP_BERT.hh"
|
||||
@@ -98,13 +94,13 @@ int main(int argc,char** argv)
|
||||
|
||||
// Construct the MT run manager
|
||||
//
|
||||
|
||||
auto* runManager =
|
||||
G4RunManagerFactory::CreateRunManager(G4RunManagerType::Default);
|
||||
#ifdef G4MULTITHREADED
|
||||
auto runManager = new G4MTRunManager;
|
||||
if ( nThreads > 0 ) {
|
||||
if ( nThreads > 0 ) {
|
||||
runManager->SetNumberOfThreads(nThreads);
|
||||
}
|
||||
#else
|
||||
auto runManager = new G4RunManager;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Set mandatory initialization classes
|
||||
|
||||
Reference in New Issue
Block a user