source: flex_extract.git/run/jobscripts/job.ksh @ 40408cb

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

recompile

  • Property mode set to 100644
File size: 2.8 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 emos
33  module load grib_api/1.14.5
34  module load emos/437-r64
35  export PATH=${PATH}:${HOME}/flex_extract_v7.1/source/python
36  ;;
37  *cca*)
38  module switch PrgEnv-cray PrgEnv-intel
39  module load grib_api
40  module load emos
41  module load python
42  export SCRATCH=${TMPDIR}
43  export PATH=${PATH}:${HOME}/flex_extract_v7.1/source/python
44  ;;
45esac
46
47cd ${SCRATCH}
48mkdir -p python$$
49cd python$$
50
51export CONTROL=CONTROL
52
53cat >${CONTROL}<<EOF
54accmaxstep 24
55acctime 18
56acctype FC
57accuracy 24
58addpar 27 28 173 186 187 188 235 139 39
59area
60basetime None
61controlfile CONTROL_CERA.testgrid
62cwc 1
63dataset None
64date_chunk 3
65debug 1
66destination annep@genericSftp
67dpdeta 1
68dtime 3
69ecfsdir ectmp:/${USER}/econdemand/
70ecgid at
71ecstorage 0
72ectrans 1
73ecuid km4a
74end_date 20090108
75eta 1
76etadiff 0
77etapar 77
78expver 1
79format GRIB1
80gateway srvx8.img.univie.ac.at
81gauss 0
82gaussian
83grib2flexpart 0
84grid 2000
85inputdir /raid60/nas/tmc/Anne/Interpolation/flexextract/flex_extract_v7.1/run/workspace
86install_target None
87job_template job.temp
88left -20000
89level 91
90levelist 1/to/91
91logicals gauss omega omegadiff eta etadiff dpdeta cwc wrf grib2flexpart ecstorage ectrans debug request public
92lower 40000
93mailfail ${USER}
94mailops ${USER}
95makefile Makefile.gfortran
96marsclass EP
97maxstep 0
98number OFF
99omega 0
100omegadiff 0
101outputdir /raid60/nas/tmc/Anne/Interpolation/flexextract/flex_extract_v7.1/run/workspace
102prefix CE
103public 0
104queue ecgate
105request 2
106resol 106
107right 60000
108smooth 0
109start_date 20090108
110step 00 00 00 00 00 00 00 00
111stream ENDA
112time 00 03 06 09 12 15 18 21
113type AN AN AN AN AN AN AN AN
114upper 60000
115wrf 0
116EOF
117
118
119submit.py --controlfile=${CONTROL} --inputdir=./work --outputdir=./work 1> prot 2>&1
120
121if [ $? -eq 0 ] ; then
122  l=0
123  for muser in `grep -i MAILOPS ${CONTROL}`; do
124      if [ ${l} -gt 0 ] ; then 
125         mail -s flex.${HOST}.$$ ${muser} <prot
126      fi
127      l=$((${l}+1))
128  done
129else
130  l=0
131  for muser in `grep -i MAILFAIL ${CONTROL}`; do
132      if [ ${l} -gt 0 ] ; then 
133         mail -s "ERROR! flex.${HOST}.$$" ${muser} <prot
134      fi
135      l=$((${l}+1))
136  done
137fi
138
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG