Hi:
Experts I recently found that I could not enable multi-threaded mode when running the program. G4 gave me an error message.
-------- EEEE ------- G4Exception-START -------- EEEE -------
*** ExceptionHandler is not defined ***
*** G4Exception : Run0107
issued by : G4RunManager::G4RunManager(G4bool)
Geant4 code is compiled without multi-threading support (-DG4MULTITHREADED is set to off). This type of RunManager can only be used in mult-threaded applications.
*** Fatal Exception ***
-------- EEEE ------- G4Exception-END -------- EEEE -------
*** G4Exception: Aborting execution ***
I enable multi-threaded mode with the following program.
auto runManager = new G4MTRunManager;
/run/numberOfThreads 8
I’m not sure what went wrong and I’m looking forward to your responses.
It’s not a ban. It’s a choice you made when you built your G4 installation. If you G4 installation was built by someone else (perhaps you’re working on a large computing cluster?), then the choice was made by whomever did the build.
The error message you posted tells you what was set in the original cmake command. You may also read the Geant4 Installation Guide for details.