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
Line 
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
7#SBATCH --workdir=/scratch/ms/at/km4a
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
19## -o /scratch/ms/at/km4a/flex_ecmwf.${PBS_JOBID}.out
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
27export VERSION=7.1
28case ${HOST} in
29  *ecg*)
30  module load python
31  module unload grib_api
32  module unload eccodes
33  module load eccodes
34  module unload emos
35  module load emos/455-r64
36  export PATH=${PATH}:${HOME}/flex_extract_v7.1/source/python
37  ;;
38  *cca*)
39  module switch PrgEnv-cray PrgEnv-intel
40  module load eccodes
41  module load emos
42  module load python
43  export SCRATCH=${TMPDIR}
44  export PATH=${PATH}:${HOME}/flex_extract_v7.1/source/python
45  ;;
46esac
47
48cd ${SCRATCH}
49mkdir -p python$$
50cd python$$
51
52export CONTROL=CONTROL
53
54cat >${CONTROL}<<EOF
55accmaxstep 12
56acctime 00/12
57acctype FC
58accuracy 24
59addpar /186/187/188/235/139/39
60area 61.2/-10.0/36.0/32.0
61basetime None
62controlfile CONTROL_OD.fastnet
63cwc 0
64dataset None
65date_chunk 3
66debug 0
67destination annep@genericSftp
68dpdeta 1
69dtime 1
70ecapi None
71ecfsdir ectmp:/${USER}/econdemand/
72ecgid at
73ecstorage 0
74ectrans 1
75ecuid km4a
76end_date 20190215
77eta 1
78etadiff 0
79etapar 77
80expver 1
81format GRIB2
82gateway srvx8.img.univie.ac.at
83gauss 0
84gaussian
85grib2flexpart 0
86grid 0.1/0.1
87inputdir /raid60/nas/tmc/Anne/Interpolation/Mergeflexextract/flexextract/run/workspace
88install_target None
89job_chunk 1
90job_template job.temp
91left -10.0
92level 137
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
96mailfail ${USER}
97mailops ${USER}
98makefile Makefile.gfortran
99marsclass OD
100maxstep 11
101number OFF
102omega 0
103omegadiff 0
104oper 0
105outputdir /raid60/nas/tmc/Anne/Interpolation/Mergeflexextract/flexextract/run/workspace
106prefix EN
107public 0
108purefc 0
109queue ecgate
110request 2
111resol 1279
112right 32.0
113rrint 0
114smooth 0
115start_date 20190215
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
117stream OPER
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
121wrf 0
122
123EOF
124
125
126submit.py --controlfile=${CONTROL} --inputdir=./work --outputdir=./work 1> prot 2>&1
127
128if [ $? -eq 0 ] ; then
129  l=0
130  for muser in `grep -i MAILOPS ${CONTROL}`; do
131      if [ ${l} -gt 0 ] ; then 
132         mail -s flex.${HOST}.$$ ${muser} <prot
133      fi
134      l=$((${l}+1))
135  done
136else
137  l=0
138  for muser in `grep -i MAILFAIL ${CONTROL}`; do
139      if [ ${l} -gt 0 ] ; then 
140         mail -s "ERROR! flex.${HOST}.$$" ${muser} <prot
141      fi
142      l=$((${l}+1))
143  done
144fi
145
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG