Changeset c5074d2 in flex_extract.git for source/pythontest/TestData/job.temp.test


Ignore:
Timestamp:
Oct 9, 2018, 8:42:16 PM (5 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
aa275fc
Parents:
0a06607
Message:

added making of namelist file and jobscript via genshi templates

File:
1 moved

Legend:

Unmodified
Added
Removed
  • source/pythontest/TestData/job.temp.test

    r25b14be rc5074d2  
    55# start with sbatch NAME_OF_THIS_FILE directly on machine
    66
    7 #SBATCH --workdir=/scratch/ms/at/km4a
     7#SBATCH --workdir=/scratch/ms/testgroup/testuser
    88#SBATCH --qos=normal
    99#SBATCH --job-name=flex_ecmwf
     
    1717##PBS -q np
    1818##PBS -S /usr/bin/ksh
    19 ## -o /scratch/ms/spatlh00/lh0/flex_ecmwf.$PBS_JOBID.out
     19## -o /scratch/ms/testgroup/testuser/flex_ecmwf.${PBS_JOBID}.out
    2020## job output is in .ecaccess_DO_NOT_REMOVE
    2121##PBS -j oe
     
    2626set -x
    2727export VERSION=7.1
    28 case $HOST in
     28case ${HOST} in
    2929  *ecg*)
    3030  module load python
     
    3333  module load grib_api/1.14.5
    3434  module load emos/437-r64
    35   export PATH=${PATH}:${HOME}/flex_extract_v7.1/source/python
     35  export PATH=${PATH}:fp_root_test_path/flex_extract_v7.1/source/python
    3636  ;;
    3737  *cca*)
     
    4040  module load emos
    4141  module load python
    42   export SCRATCH=$TMPDIR
    43   export PATH=${PATH}:${HOME}/flex_extract_v7.1/source/python
     42  export SCRATCH=${TMPDIR}
     43  export PATH=${PATH}:fp_root_test_path/flex_extract_v7.1/source/python
    4444  ;;
    4545esac
    4646
    47 cd $SCRATCH
     47cd ${SCRATCH}
    4848mkdir -p python$$
    4949cd python$$
     
    5151export CONTROL=CONTROL
    5252
    53 cat >$CONTROL<<EOF
     53cat >${CONTROL}<<EOF
    5454EOF
    5555
    5656
    57 submit.py --controlfile=$CONTROL --inputdir=./work --outputdir=./work 1> prot 2>&1
     57submit.py --controlfile=${CONTROL} --inputdir=./work --outputdir=./work 1> prot 2>&1
    5858
    5959if [ $? -eq 0 ] ; then
    6060  l=0
    61   for muser in `grep -i MAILOPS $CONTROL`; do
    62       if [ $l -gt 0 ] ; then
    63          mail -s flex.${HOST}.$$ $muser <prot
     61  for muser in `grep -i MAILOPS ${CONTROL}`; do
     62      if [ ${l} -gt 0 ] ; then
     63         mail -s flex.${HOST}.$$ ${muser} <prot
    6464      fi
    65       l=$(($l+1))
     65      l=$((${l}+1))
    6666  done
    6767else
    6868  l=0
    69   for muser in `grep -i MAILFAIL $CONTROL`; do
    70       if [ $l -gt 0 ] ; then
    71          mail -s "ERROR! flex.${HOST}.$$" $muser <prot
     69  for muser in `grep -i MAILFAIL ${CONTROL}`; do
     70      if [ ${l} -gt 0 ] ; then
     71         mail -s "ERROR! flex.${HOST}.$$" ${muser} <prot
    7272      fi
    73       l=$(($l+1))
     73      l=$((${l}+1))
    7474  done
    7575fi
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG