#!/bin/bash #PBS -P projectid #PBS -l select=3:ncpus=24:mpiprocs=24:nodetype=haswell_reg #PBS -q normal #PBS -l walltime=01:00:00 #PBS -o /mnt/lustre/users/username/rootJobs/job01/stdout #PBS -e /mnt/lustre/users/username/rootJobs/job01/stderr #PBS -m abe #PBS -M username@email.co.za ### Load the Geant4 module file into your shell environment: module load chpc/phys/geant4/11.1.2-gcc13 ##### Running commands # Set this environment variable explicitly. export PBS_JOBDIR=/mnt/lustre/users/username/rootJobs/job01 # Explicitly change to the job directory cd $PBS_JOBDIR nproc=`cat $PBS_NODEFILE | wc -l` exe=geant4 mpirun -np $nproc ./exe > geant4.out