Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/extended/parallel/MPI/exMPI02/README.md is written in an unsupported language. File is not indexed.

0001 MPI/Examples : exMPI02
0002 ======================
0003 
0004 Description
0005 -----------
0006 An example of dosimetry in a water phantom.
0007 
0008 ### Configuration:
0009 - Geometry     : water phantom
0010 - Primary      : broad beam (200 MeV proton)
0011 - Physics List : FTFP_BERT
0012 - Analysis     : ROOT histogramming
0013 
0014 The environment variables, *G4LEDATA*, *G4LEVELGAMMADATA* and *G4SAIDXSDATA*
0015 are required for data files.
0016 
0017 The enviromnet variable, *ROOTSYS*, is set to the root path of the ROOT package.
0018 
0019 ### Features:
0020 - Score dose distribution in a water phantom.
0021 - Learn how to paralleized your applications.
0022 - Create a ROOT file containing histograms/trees in each node.
0023   Each slave node generate a ROOT file, whose file name is different 
0024   from each other.
0025 
0026 
0027 How to build
0028 ------------
0029 Use CMake on Geant4 library installed with CMake build.
0030 
0031 This example requires G4mpi library to be installed
0032 (see examples/extended/parallel/MPI/source/REDME.md)
0033 
0034 Follow these commands,
0035 
0036     > mkdir build
0037     > cd build
0038     > cmake -DG4mpi_DIR=<where-G4mpi-wasintalled>/lib[64]/G4mpi -DCMAKE_CXX_COMPILER=mpicxx \
0039       -DGeant4_DIR=<your Geant4 install path>/lib[64]/Geant4-V.m.n <path-to-source>
0040       (V.m.n is the version of Geant4, eg. Geant4-9.6.0)
0041     > make
0042     > make install
0043 
0044 Replace mpicxx with your MPI-compiler wrapper.
0045 
0046 How to run
0047 ----------
0048 
0049     > mpiexec -n # ./exMPI02 [run.mac]