#PBS -S /bin/bash #PBS -q normalq #PBS -l nodes=blah:ppn=blah #PBS -n #PBS -N mul #PBS -l walltime=24:00:00 cd "${PBS_O_WORKDIR}" module load intel/mpi/64/2017/5.239 CASENAME1=inside #$(basename "$1") CASENAME2=outside #$(basename "$2") NP1=blah NP2=blah CASEDIR1=`pwd`'/' CASEDIR2=`pwd`'/' rm -rf SESSION.NAME >/dev/null echo 2 >> SESSION.NAME echo $CASENAME1 >> SESSION.NAME echo $CASEDIR1 >> SESSION.NAME echo $NP1 >> SESSION.NAME echo $CASENAME2 >> SESSION.NAME echo $CASEDIR2 >> SESSION.NAME echo $NP2 >> SESSION.NAME irm -rf ioinfo # generate mpmd configuration file echo 0-$((NP1-1)) $CASEDIR1/nek5000 > mpmd.conf echo $NP1-$((NP1+NP2-1)) $CASEDIR2/nek5000 >> mpmd.conf mpiexec -np $NP1 $CASEDIR1/nek5000 : -np $NP2 $CASEDIR2/nek5000 srun --multi-prog mpmd.conf