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


Ignore:
Timestamp:
Oct 9, 2018, 8:42:16 PM (6 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 edited

Legend:

Unmodified
Added
Removed
  • source/pythontest/TestData/compilejob.test

    r0aaeb04 rc5074d2  
    1717##PBS -q ns
    1818##PBS -S /usr/bin/ksh
    19 ##PBS -o /scratch/ms/testgroup/testuser/flex_ecmwf.$Jobname.$Job_ID.out
     19##PBS -o /scratch/ms/testgroup/testuser/flex_ecmwf.${Jobname}.${Job_ID}.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
     
    4343  echo ${GROUP}
    4444  echo ${HOME}
    45   echo $HOME | awk -F / '{print $1, $2, $3, $4}'
    46   export GROUP=`echo $HOME | awk -F / '{print $4}'`
     45  echo ${HOME} | awk -F / '{print $1, $2, $3, $4}'
     46  export GROUP=`echo ${HOME} | awk -F / '{print $4}'`
    4747  export SCRATCH=/scratch/ms/${GROUP}/${USER}
    48   export FLEXPART_ROOT_SCRIPTS=p_root_test_path
     48  export FLEXPART_ROOT_SCRIPTS=fp_root_test_path
    4949  export MAKEFILE=Makefile.TEST
    5050  ;;
    5151esac
    5252
    53 mkdir -p $FLEXPART_ROOT_SCRIPTS/flex_extract_v$VERSION
    54 cd $FLEXPART_ROOT_SCRIPTS/flex_extract_v$VERSION   # if FLEXPART_ROOT is not set this means cd to the home directory
    55 tar -xvf $HOME/flex_extract_v$VERSION.tar
     53mkdir -p ${FLEXPART_ROOT_SCRIPTS}/flex_extract_v${VERSION}
     54cd ${FLEXPART_ROOT_SCRIPTS}/flex_extract_v${VERSION}   # if FLEXPART_ROOT is not set this means cd to the home directory
     55tar -xvf ${HOME}/flex_extract_v${VERSION}.tar
    5656cd src
    5757\rm *.o *.mod CONVERT2
    58 make -f $MAKEFILE >flexcompile 2>flexcompile
     58make -f ${MAKEFILE} >flexcompile 2>flexcompile
    5959
    6060ls -l CONVERT2 >>flexcompile
    6161if [ $? -eq 0 ]; then
    6262  echo 'SUCCESS!' >>flexcompile
    63   mail -s flexcompile.$HOST.$$ $USER <flexcompile
     63  mail -s flexcompile.${HOST}.$$ ${USER} <flexcompile
    6464else
    6565  echo Environment: >>flexcompile
    6666  env >> flexcompile
    67   mail -s "ERROR! flexcompile.$HOST.$$" $USER <flexcompile
     67  mail -s "ERROR! flexcompile.${HOST}.$$" ${USER} <flexcompile
    6868fi
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG