#!/bin/bash -l # #SBATCH --time=04:00:00 #SBATCH --account="s753" #SBATCH --nodes=256 #SBATCH --ntasks-per-node=36 #SBATCH --ntasks-per-core=1 #SBATCH --cpus-per-task=1 #SBATCH --constraint=mc #SBATCH --output=%j.o #SBATCH --error=%j.e CASENAME1=pipe #$(basename "$1") CASENAME2=main #$(basename "$2") NP1=180 NP2=9036 CASEDIR1=`pwd`'/'$CASENAME1 CASEDIR2=`pwd`'/'$CASENAME2 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 rm -rf ioinfo # generate mpmd configuration file echo 0-$((NP1-1)) $CASEDIR1/nek5000 > mpmd.conf echo $NP1-$((NP1+NP2-1)) $CASEDIR2/nek5000 >> mpmd.conf module unload PrgEnv-gnu PrgEnv-cray; module load PrgEnv-intel daint-mc srun --multi-prog mpmd.conf