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