Changeset c5074d2 in flex_extract.git for templates/compilejob.template
- Timestamp:
- Oct 9, 2018, 8:42:16 PM (6 years ago)
- Branches:
- master, ctbto, dev
- Children:
- aa275fc
- Parents:
- 0a06607
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
templates/compilejob.template
r0aaeb04 rc5074d2 17 17 ##PBS -q ns 18 18 ##PBS -S /usr/bin/ksh 19 ##PBS -o /scratch/ms/$usergroup/$username/flex_ecmwf.$ Jobname.$Job_ID.out19 ##PBS -o /scratch/ms/$usergroup/$username/flex_ecmwf.$${Jobname}.$${Job_ID}.out 20 20 # job output is in .ecaccess_DO_NOT_REMOVE 21 21 ##PBS -j oe … … 26 26 set -x 27 27 export VERSION=$version_number 28 case $ HOSTin28 case $${HOST} in 29 29 *ecg*) 30 30 module load python … … 41 41 module load emos 42 42 module load python 43 echo $ {GROUP}44 echo $ {HOME}45 echo $ HOME| awk -F / '{print $1, $2, $3, $4}'46 export GROUP=`echo $ HOME| awk -F / '{print $4}'`47 export SCRATCH=/scratch/ms/$ {GROUP}/${USER}43 echo $${GROUP} 44 echo $${HOME} 45 echo $${HOME} | awk -F / '{print $1, $2, $3, $4}' 46 export GROUP=`echo $${HOME} | awk -F / '{print $4}'` 47 export SCRATCH=/scratch/ms/$${GROUP}/$${USER} 48 48 export FLEXPART_ROOT_SCRIPTS=$fp_root_scripts 49 49 export MAKEFILE=$makefile … … 51 51 esac 52 52 53 mkdir -p $ FLEXPART_ROOT_SCRIPTS/flex_extract_v$VERSION54 cd $ FLEXPART_ROOT_SCRIPTS/flex_extract_v$VERSION# if FLEXPART_ROOT is not set this means cd to the home directory55 tar -xvf $ HOME/flex_extract_v$VERSION.tar53 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 56 56 cd src 57 57 \rm *.o *.mod $fortran_program 58 make -f $ MAKEFILE>flexcompile 2>flexcompile58 make -f $${MAKEFILE} >flexcompile 2>flexcompile 59 59 60 60 ls -l $fortran_program >>flexcompile 61 if [ $ ? -eq 0 ]; then61 if [ $$? -eq 0 ]; then 62 62 echo 'SUCCESS!' >>flexcompile 63 mail -s flexcompile.$ HOST.$$ $USER<flexcompile63 mail -s flexcompile.$${HOST}.$$$$ $${USER} <flexcompile 64 64 else 65 65 echo Environment: >>flexcompile 66 66 env >> flexcompile 67 mail -s "ERROR! flexcompile.$ HOST.$$" $USER<flexcompile67 mail -s "ERROR! flexcompile.$${HOST}.$$$$" $${USER} <flexcompile 68 68 fi
Note: See TracChangeset
for help on using the changeset viewer.