This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
howto:geant4 [2024/11/11 10:35] msovara created |
howto:geant4 [2024/11/12 09:49] (current) msovara [About Geant4] |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| Geant4 [[https:// | Geant4 [[https:// | ||
| - | On LENGAU, | + | On LENGAU, |
| module avail 2>&1 | grep -i geant4 | module avail 2>&1 | grep -i geant4 | ||
| module load chpc/ | module load chpc/ | ||
| - | . | ||
| - | . | ||
| # Run Geant4 | # Run Geant4 | ||
| ./mygeant4 | ./mygeant4 | ||
| + | =====Batch Script Example===== | ||
| + | This is just a simple example which will be improved as testing commences: | ||
| + | <file bash geant4.qsub> | ||
| + | # | ||
| + | #PBS -P projectid | ||
| + | #PBS -l select=3: | ||
| + | #PBS -q normal | ||
| + | #PBS -l walltime=01: | ||
| + | #PBS -o / | ||
| + | #PBS -e / | ||
| + | #PBS -m abe | ||
| + | #PBS -M username@email.co.za | ||
| + | ### Load the Geant4 module file into your shell environment: | ||
| + | | ||
| + | ##### Running commands | ||
| + | # Set this environment variable explicitly. | ||
| + | export PBS_JOBDIR=/ | ||
| + | # Explicitly change to the job directory | ||
| + | cd $PBS_JOBDIR | ||
| + | nproc=`cat $PBS_NODEFILE | wc -l` | ||
| + | exe=geant4 | ||
| + | mpirun -np $nproc ./exe > geant4.out | ||
| + | </ | ||
| + | |||
| + | Instructions on how to create and submit a batch job will follow as collaborative testing commences... | ||