Warning, /geant4/examples/extended/parallel/MPI/exMPI01/README.md is written in an unsupported language. File is not indexed.
0001 MPI/Examples : exMPI01
0002 ======================
0003
0004 Description
0005 -----------
0006 A simple application
0007
0008 ### Configuration:
0009
0010 - Geometry : chamber / calorimeter
0011 - Primary : particle gun (200 MeV electron as default)
0012 - Physics List : FTFP_BERT
0013
0014 ### Features:
0015
0016 - Particles are transported in a geometry without any scoring.
0017 - Learn how to parallelized your G4 session.
0018
0019
0020 How to build
0021 ------------
0022 Use CMake on Geant4 library installed with CMake build.
0023
0024 This example requires G4mpi library to be installed
0025 (see examples/extended/parallel/MPI/source/REDME.md)
0026
0027 Follow these commands,
0028
0029 > mkdir build
0030 > cd build
0031 > cmake -DG4mpi_DIR=<where-G4mpi-wasintalled>/lib[64]/G4mpi -DCMAKE_CXX_COMPILER=mpicxx \
0032 -DGeant4_DIR=<your Geant4 install path>/lib[64]/Geant4-V.m.n <path-to-source>
0033 (V.m.n is the version of Geant4, eg. Geant4-9.6.0)
0034 > make
0035 > make install
0036
0037 Replace mpicxx with your MPI-compiler wrapper.
0038
0039 How to run
0040 ----------
0041
0042 > mpiexec -n # ./exMPI01 [run.mac]