source: flex_extract.git/run/jobscripts/job.ksh @ 34b247b

dev
Last change on this file since 34b247b was 34b247b, checked in by Anne Philipp <anne.philipp@…>, 12 months ago

new installation

  • Property mode set to 100644
File size: 2.9 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 12
55acctime 06/18
56acctype FC
57accuracy 24
58addpar 186 187 188 235 139 39
59area
60basetime None
61controlfile CONTROL_EA5.testgrid
62cwc 0
63dataset None
64date_chunk 3
65debug 1
66destination annep@genericSftp
67dpdeta 1
68dtime 1
69ecfsdir ectmp:/${USER}/econdemand/
70ecgid at
71ecstorage 0
72ectrans 1
73ecuid km4a
74end_date 20180108
75eta 1
76etadiff 0
77etapar 77
78expver 1
79format GRIB1
80gateway srvx8.img.univie.ac.at
81gauss 0
82gaussian
83grib2flexpart 0
84grid 1000
85inputdir /raid60/nas/tmc/Anne/Interpolation/flexextract/flex_extract_v7.1/run/workspace
86install_target None
87job_template job.temp
88left -5000
89level 137
90levelist 100/to/137
91logicals gauss omega omegadiff eta etadiff dpdeta cwc wrf grib2flexpart ecstorage ectrans debug request public
92lower 10000
93mailfail ${USER}
94mailops ${USER}
95makefile Makefile.gfortran
96marsclass EA
97maxstep 0
98number OFF
99omega 0
100omegadiff 0
101outputdir /raid60/nas/tmc/Anne/Interpolation/flexextract/flex_extract_v7.1/run/workspace
102prefix EA
103public 0
104queue ecgate
105request 2
106resol 159
107right 5000
108smooth 0
109start_date 20180108
110step 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
111stream OPER
112time 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23
113type AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN
114upper 20000
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