#!/bin/bash #PBS -P projectcode #PBS -l select=5:ncpus=24:mpiprocs=24 #PBS -q normal #PBS -l walltime=4:00:00 #PBS -o /mnt/lustre/users/username/palabos/examples/showCases/aneurysm/stdout #PBS -e /mnt/lustre/users/username/palabos/examples/showCases/aneurysm/stderr #PBS -m abe #PBS -M username@email.com ### Source the openFOAM environment (palabos needs this for the dependencies): . /apps/chpc/compmech/CFD/OpenFOAM/OF2112 ### load the cmake module module add chpc/compmech/cmake/3.15.0 ##### Running commands # Set this environment variable explicitly. export PBS_JOBDIR=/mnt/lustre/users/username/palabos/examples/showCases/aneurysm/ # Explicitly change to the job directory cd $PBS_JOBDIR nproc=`cat $PBS_NODEFILE | wc -l` ###Run the code using MPI exe=aneurysm mpirun -iface ib0 -np $nproc $exe param.xml > run.out