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

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

new testrun

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