source: flex_extract.git/run/jobscripts/job.ksh @ c97d8ec

ctbtodev
Last change on this file since c97d8ec was c97d8ec, checked in by Anne Philipp <anne.philipp@…>, 6 years ago

new compilation and adaptations on CONTROL files for CERA (NUMBER parameter has to be set to a number (0))

  • Property mode set to 100644
File size: 2.9 KB
RevLine 
[d69b677]1#!/bin/ksh
2
3# ON ECGB:
4# start with ecaccess-job-submit -queueName ecgb NAME_OF_THIS_FILE  on gateway server
5# start with sbatch NAME_OF_THIS_FILE directly on machine
6
[efdb01a]7#SBATCH --workdir=/scratch/ms/at/km4a
[d69b677]8#SBATCH --qos=normal
9#SBATCH --job-name=flex_ecmwf
10#SBATCH --output=flex_ecmwf.%j.out
11#SBATCH --error=flex_ecmwf.%j.out
12#SBATCH --mail-type=FAIL
13#SBATCH --time=12:00:00
14
15## CRAY specific batch requests
16##PBS -N flex_ecmwf
17##PBS -q np
18##PBS -S /usr/bin/ksh
[34b247b]19## -o /scratch/ms/at/km4a/flex_ecmwf.${PBS_JOBID}.out
[d69b677]20## job output is in .ecaccess_DO_NOT_REMOVE
21##PBS -j oe
22##PBS -V
23##PBS -l EC_threads_per_task=24
24##PBS -l EC_memory_per_task=32000MB
25
26set -x
[efdb01a]27export VERSION=7.1
[34b247b]28case ${HOST} in
[d69b677]29  *ecg*)
30  module load python
31  module unload grib_api
[c97d8ec]32  module unload eccodes
[d69b677]33  module unload emos
[c97d8ec]34  module load grib_api/1.27.0
35  module load emos/457-r64
[ca867de]36  export PATH=${PATH}:${HOME}/flex_extract_v7.1/source/python
[d69b677]37  ;;
38  *cca*)
39  module switch PrgEnv-cray PrgEnv-intel
40  module load grib_api
41  module load emos
42  module load python
[34b247b]43  export SCRATCH=${TMPDIR}
[ca867de]44  export PATH=${PATH}:${HOME}/flex_extract_v7.1/source/python
[d69b677]45  ;;
46esac
47
[34b247b]48cd ${SCRATCH}
[d69b677]49mkdir -p python$$
50cd python$$
51
[ca867de]52export CONTROL=CONTROL
[d69b677]53
[34b247b]54cat >${CONTROL}<<EOF
[c97d8ec]55accmaxstep 12
56acctime 06/18
[34b247b]57acctype FC
58accuracy 24
[c97d8ec]59addpar 186 187 188 235 139 39
[54a8a01]60area
[d69b677]61basetime None
[c97d8ec]62controlfile CONTROL_EA5.testgrid
63cwc 0
[34b247b]64dataset None
[d69b677]65date_chunk 3
[2fb99de]66debug 1
[54a8a01]67destination annep@genericSftp
[d69b677]68dpdeta 1
[c97d8ec]69dtime 1
[d69b677]70ecfsdir ectmp:/${USER}/econdemand/
[54a8a01]71ecgid at
[efdb01a]72ecstorage 0
[ccab809]73ectrans 1
[54a8a01]74ecuid km4a
[40408cb]75end_date 20090108
[34b247b]76eta 1
[d69b677]77etadiff 0
[54a8a01]78etapar 77
[d69b677]79expver 1
80format GRIB1
[54a8a01]81gateway srvx8.img.univie.ac.at
[34b247b]82gauss 0
83gaussian
[d69b677]84grib2flexpart 0
[c97d8ec]85grid 1000
[34b247b]86inputdir /raid60/nas/tmc/Anne/Interpolation/flexextract/flex_extract_v7.1/run/workspace
[54a8a01]87install_target None
88job_template job.temp
[c97d8ec]89left -5000
90level 137
91levelist 100/to/137
[34b247b]92logicals gauss omega omegadiff eta etadiff dpdeta cwc wrf grib2flexpart ecstorage ectrans debug request public
[c97d8ec]93lower 10000
[54a8a01]94mailfail ${USER}
95mailops ${USER}
[2fb99de]96makefile Makefile.gfortran
[c97d8ec]97marsclass EA
[34b247b]98maxstep 0
[d69b677]99number OFF
100omega 0
101omegadiff 0
[34b247b]102outputdir /raid60/nas/tmc/Anne/Interpolation/flexextract/flex_extract_v7.1/run/workspace
[c97d8ec]103prefix EA
[34b247b]104public 0
105queue ecgate
106request 2
[c97d8ec]107resol 159
108right 5000
[d69b677]109smooth 0
[40408cb]110start_date 20090108
[c97d8ec]111step 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
112stream OPER
113time 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23
114type AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN
115upper 20000
[54a8a01]116wrf 0
[d69b677]117EOF
118
119
[34b247b]120submit.py --controlfile=${CONTROL} --inputdir=./work --outputdir=./work 1> prot 2>&1
[d69b677]121
122if [ $? -eq 0 ] ; then
123  l=0
[34b247b]124  for muser in `grep -i MAILOPS ${CONTROL}`; do
125      if [ ${l} -gt 0 ] ; then 
126         mail -s flex.${HOST}.$$ ${muser} <prot
[d69b677]127      fi
[34b247b]128      l=$((${l}+1))
[d69b677]129  done
130else
131  l=0
[34b247b]132  for muser in `grep -i MAILFAIL ${CONTROL}`; do
133      if [ ${l} -gt 0 ] ; then 
134         mail -s "ERROR! flex.${HOST}.$$" ${muser} <prot
[d69b677]135      fi
[34b247b]136      l=$((${l}+1))
[d69b677]137  done
138fi
139
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG