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

ctbtodev
Last change on this file since df87f0c was df87f0c, checked in by anphi <anne.philipp@…>, 5 years ago

new job update

  • Property mode set to 100644
File size: 3.0 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
[b02a07e]33  module load eccodes
[d69b677]34  module unload emos
[b02a07e]35  module load emos/455-r64
[ca867de]36  export PATH=${PATH}:${HOME}/flex_extract_v7.1/source/python
[d69b677]37  ;;
38  *cca*)
39  module switch PrgEnv-cray PrgEnv-intel
[b02a07e]40  module load eccodes
[d69b677]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
[b02a07e]56acctime 00/12
[34b247b]57acctype FC
58accuracy 24
[b02a07e]59addpar /186/187/188/235/139/39
60area 61.2/-10.0/36.0/32.0
[d69b677]61basetime None
[b02a07e]62controlfile CONTROL_OD.fastnet
[c97d8ec]63cwc 0
[34b247b]64dataset None
[d69b677]65date_chunk 3
[b02a07e]66debug 0
[54a8a01]67destination annep@genericSftp
[d69b677]68dpdeta 1
[c97d8ec]69dtime 1
[b02a07e]70ecapi None
[d69b677]71ecfsdir ectmp:/${USER}/econdemand/
[54a8a01]72ecgid at
[efdb01a]73ecstorage 0
[ccab809]74ectrans 1
[54a8a01]75ecuid km4a
[df87f0c]76end_date 20190215
[34b247b]77eta 1
[d69b677]78etadiff 0
[54a8a01]79etapar 77
[d69b677]80expver 1
[b02a07e]81format GRIB2
[54a8a01]82gateway srvx8.img.univie.ac.at
[34b247b]83gauss 0
84gaussian
[d69b677]85grib2flexpart 0
[b02a07e]86grid 0.1/0.1
[df87f0c]87inputdir /raid60/nas/tmc/Anne/Interpolation/Mergeflexextract/flexextract/run/workspace
[54a8a01]88install_target None
[b02a07e]89job_chunk 1
[54a8a01]90job_template job.temp
[b02a07e]91left -10.0
[c97d8ec]92level 137
[b02a07e]93levelist 1/to/137
94logicals gauss omega omegadiff eta etadiff dpdeta cwc wrf grib2flexpart ecstorage ectrans debug oper request public purefc rrint
95lower 36.0
[54a8a01]96mailfail ${USER}
97mailops ${USER}
[2fb99de]98makefile Makefile.gfortran
[b02a07e]99marsclass OD
100maxstep 11
[d69b677]101number OFF
102omega 0
103omegadiff 0
[b02a07e]104oper 0
[df87f0c]105outputdir /raid60/nas/tmc/Anne/Interpolation/Mergeflexextract/flexextract/run/workspace
[b02a07e]106prefix EN
[34b247b]107public 0
[b02a07e]108purefc 0
[34b247b]109queue ecgate
110request 2
[b02a07e]111resol 1279
112right 32.0
113rrint 0
[d69b677]114smooth 0
[df87f0c]115start_date 20190215
[b02a07e]116step 00 01 02 03 04 05 06 07 08 09 10 11 00 01 02 03 04 05 06 07 08 09 10 11
[c97d8ec]117stream OPER
[b02a07e]118time 00 00 00 00 00 00 00 00 00 00 00 00 12 12 12 12 12 12 12 12 12 12 12 12
119type AN FC FC FC FC FC FC FC FC FC FC FC AN FC FC FC FC FC FC FC FC FC FC FC
120upper 61.2
[54a8a01]121wrf 0
[b02a07e]122
[d69b677]123EOF
124
125
[34b247b]126submit.py --controlfile=${CONTROL} --inputdir=./work --outputdir=./work 1> prot 2>&1
[d69b677]127
128if [ $? -eq 0 ] ; then
129  l=0
[34b247b]130  for muser in `grep -i MAILOPS ${CONTROL}`; do
131      if [ ${l} -gt 0 ] ; then 
132         mail -s flex.${HOST}.$$ ${muser} <prot
[d69b677]133      fi
[34b247b]134      l=$((${l}+1))
[d69b677]135  done
136else
137  l=0
[34b247b]138  for muser in `grep -i MAILFAIL ${CONTROL}`; do
139      if [ ${l} -gt 0 ] ; then 
140         mail -s "ERROR! flex.${HOST}.$$" ${muser} <prot
[d69b677]141      fi
[34b247b]142      l=$((${l}+1))
[d69b677]143  done
144fi
145
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG