|Line 1:||Line 1:|
Revision as of 18:17, 11 November 2015
| Note: This page hasn't been updated for a long time, and is most likely outdated. |
If you need it to be updated, please submit a ticket to email@example.com with the link to the page.
|Description: Suite of programs for the simulation of the passage of particles through matter|
|SHARCNET Package information: see GEANT4 software page in web portal|
|Full list of SHARCNET supported software|
The latest version of geant4 (9.6.1) is installed on CentOS clusters under /opt/sharcnet/geant4/9.6.1/gcc .
Geant4 comes with many examples useful for testing purposes. You can start with a simple test. For instance, here are the steps to compile and run an analysis example A01 in ~/testing directory inside your home directory:
module unload intel module load gcc/4.5.3 module load geant4/gcc/9.6.1 export G4WORKDIR=~/testing cp -a /opt/sharcnet/geant4/9.6.1/gcc/examples/extended/analysis/A01 $G4WORKDIR/A01 source /opt/sharcnet/geant4/9.6.1/gcc/share/Geant4-9.6.1/geant4make/geant4make.sh export CXX=g++ cd $G4WORKDIR/A01 make sqsub -q serial -r 5m -o output.log ../bin/Linux-g++/A01app
Note that geant4 makefiles will omit the environment variable $LD_RUN_PATH which has a path to gcc libraries, instead encoding only its own path to the application library you are building ($G4WORKDIR/tmp/Linux-g++/A01app in our example), so we need to set LD_LIBRARY_PATH by hand before running geant4 as illustrated by the example above.
o Geant4 Homepage
o Online User Documentation