#!/bin/ksh # ON ECGB: # start with ecaccess-job-submit -queueName ecgb NAME_OF_THIS_FILE on gateway server # start with sbatch NAME_OF_THIS_FILE directly on machine #SBATCH --workdir=/scratch/ms/testgroup/testuser #SBATCH --qos=normal #SBATCH --job-name=flex_ecmwf #SBATCH --output=flex_ecmwf.%j.out #SBATCH --error=flex_ecmwf.%j.out #SBATCH --mail-type=FAIL #SBATCH --time=12:00:00 ## CRAY specific batch requests ##PBS -N flex_ecmwf ##PBS -q np ##PBS -S /usr/bin/ksh ## -o /scratch/ms/testgroup/testuser/flex_ecmwf.$${PBS_JOBID}.out ## job output is in .ecaccess_DO_NOT_REMOVE ##PBS -j oe ##PBS -V ##PBS -l EC_threads_per_task=24 ##PBS -l EC_memory_per_task=32000MB set -x export VERSION=7.1.2 case $${HOST} in *ecg*) module unload grib_api module unload emos module load python3 module load eccodes module load emos/455-r64 export PATH=$${PATH}:fp_root_test_path/flex_extract_v7.1.2/Source/Python ;; *cca*) module switch PrgEnv-cray PrgEnv-intel module load python3 module load eccodes module load emos/455-r64 export SCRATCH=$${TMPDIR} export PATH=$${PATH}:fp_root_test_path/flex_extract_v7.1.2/Source/Python ;; esac cd $${SCRATCH} mkdir -p extract$$$$ cd extract$$$$ export CONTROL=CONTROL cat >$${CONTROL}< prot 2>&1 if [ $? -eq 0 ] ; then l=0 for muser in `grep -i MAILOPS $${CONTROL}`; do if [ $${l} -gt 0 ] ; then mail -s flex.$${HOST}.$$$$ $${muser}