From ef6287b196c65dc88db82455f951b8f621e80a8d Mon Sep 17 00:00:00 2001 From: Eoin Whelan Date: Tue, 13 Feb 2024 10:59:09 +0000 Subject: [PATCH] Move env setting in to ECMWF batch settings --- scripts/runfestat.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/scripts/runfestat.sh b/scripts/runfestat.sh index a166b7e..75ccc20 100755 --- a/scripts/runfestat.sh +++ b/scripts/runfestat.sh @@ -49,6 +49,8 @@ EOFUSAGE } +set -e + NPROCX=-1 NPROCY=-1 THREADS=1 @@ -130,6 +132,10 @@ if [ ${HOST} == "ECMWF" ] ; then #SBATCH --time=02:00:00 # +EXP=SURF_CARRA2_CY46 +ENV=${HOME}/hm_home/$EXP +source ${ENV}/Env_system + export MPPEXEC="srun" export NPROC=999 export NPROCX=1 @@ -179,14 +185,6 @@ else fi -set -e -## -EXP=SURF_CARRA2_CY46 -ENV=${HOME}/hm_home/$EXP - -#source ${ENV}/Env_system - - # Build the namelist cat > fort.4 << EOF &NAMFESTAT