- Timestamp:
- Feb 17, 2019, 9:58:07 AM (5 years ago)
- Branches:
- master, ctbto, dev
- Children:
- df87f0c
- Parents:
- 61fdc35
- Location:
- templates
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
templates/compilejob.template
re585e1b rb02a07e 28 28 case $${HOST} in 29 29 *ecg*) 30 module unload grib_api 30 31 module unload eccodes 31 # module load python 32 module unload grib_api32 module load eccodes 33 module load python 33 34 module unload emos 34 module load grib_api/1.26.1 35 module load emos/457-r64 35 module load emos/455-r64 36 36 export FLEXPART_ROOT_SCRIPTS=$fp_root_scripts 37 37 export MAKEFILE=$makefile … … 39 39 *cca*) 40 40 module switch PrgEnv-cray PrgEnv-intel 41 module load grib_api41 module load eccodes 42 42 module load emos 43 43 module load python -
templates/job.temp
re585e1b rb02a07e 17 17 ##PBS -q np 18 18 ##PBS -S /usr/bin/ksh 19 ## -o /scratch/ms/at/km4a/flex_ecmwf.$ {PBS_JOBID}.out19 ## -o /scratch/ms/at/km4a/flex_ecmwf.$${PBS_JOBID}.out 20 20 ## job output is in .ecaccess_DO_NOT_REMOVE 21 21 ##PBS -j oe … … 26 26 set -x 27 27 export VERSION=7.1 28 case $ {HOST} in28 case $${HOST} in 29 29 *ecg*) 30 30 module load python 31 31 module unload grib_api 32 32 module unload eccodes 33 module load eccodes 33 34 module unload emos 34 module load grib_api/1.26.1 35 module load emos/457-r64 36 export PATH=${PATH}:${HOME}/flex_extract_v7.1/source/python 35 module load emos/455-r64 36 export PATH=$${PATH}:$${HOME}/flex_extract_v7.1/source/python 37 37 ;; 38 38 *cca*) 39 39 module switch PrgEnv-cray PrgEnv-intel 40 module load grib_api40 module load eccodes 41 41 module load emos 42 42 module load python 43 export SCRATCH=$ {TMPDIR}44 export PATH=$ {PATH}:${HOME}/flex_extract_v7.1/source/python43 export SCRATCH=$${TMPDIR} 44 export PATH=$${PATH}:$${HOME}/flex_extract_v7.1/source/python 45 45 ;; 46 46 esac 47 47 48 cd $ {SCRATCH}49 mkdir -p python$$ 50 cd python$$ 48 cd $${SCRATCH} 49 mkdir -p python$$$$ 50 cd python$$$$ 51 51 52 52 export CONTROL=CONTROL 53 53 54 cat >${CONTROL}<<EOF 54 cat >$${CONTROL}<<EOF 55 $control_content 55 56 EOF 56 57 57 58 58 submit.py --controlfile=$ {CONTROL} --inputdir=./work --outputdir=./work 1> prot 2>&159 submit.py --controlfile=$${CONTROL} --inputdir=./work --outputdir=./work 1> prot 2>&1 59 60 60 61 if [ $? -eq 0 ] ; then 61 62 l=0 62 for muser in `grep -i MAILOPS $ {CONTROL}`; do63 if [ $ {l} -gt 0 ] ; then64 mail -s flex.$ {HOST}.$$${muser} <prot63 for muser in `grep -i MAILOPS $${CONTROL}`; do 64 if [ $${l} -gt 0 ] ; then 65 mail -s flex.$${HOST}.$$$$ $${muser} <prot 65 66 fi 66 l=$(($ {l}+1))67 l=$(($${l}+1)) 67 68 done 68 69 else 69 70 l=0 70 for muser in `grep -i MAILFAIL $ {CONTROL}`; do71 if [ $ {l} -gt 0 ] ; then72 mail -s "ERROR! flex.$ {HOST}.$$"${muser} <prot71 for muser in `grep -i MAILFAIL $${CONTROL}`; do 72 if [ $${l} -gt 0 ] ; then 73 mail -s "ERROR! flex.$${HOST}.$$$$" $${muser} <prot 73 74 fi 74 l=$(($ {l}+1))75 l=$(($${l}+1)) 75 76 done 76 77 fi -
templates/job.template
re585e1b rb02a07e 17 17 ##PBS -q np 18 18 ##PBS -S /usr/bin/ksh 19 ## -o /scratch/ms/$usergroup/$username/flex_ecmwf.$$ {PBS_JOBID}.out19 ## -o /scratch/ms/$usergroup/$username/flex_ecmwf.$$$${PBS_JOBID}.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 $$ {HOST} in28 case $$$${HOST} in 29 29 *ecg*) 30 30 module load python 31 31 module unload grib_api 32 32 module unload eccodes 33 module load eccodes 33 34 module unload emos 34 module load grib_api/1.26.1 35 module load emos/457-r64 36 export PATH=$${PATH}:$fp_root_path 35 module load emos/455-r64 36 export PATH=$$$${PATH}:$fp_root_path 37 37 ;; 38 38 *cca*) 39 39 module switch PrgEnv-cray PrgEnv-intel 40 module load grib_api40 module load eccodes 41 41 module load emos 42 42 module load python 43 export SCRATCH=$$ {TMPDIR}44 export PATH=$$ {PATH}:$fp_root_path43 export SCRATCH=$$$${TMPDIR} 44 export PATH=$$$${PATH}:$fp_root_path 45 45 ;; 46 46 esac 47 47 48 cd $$ {SCRATCH}49 mkdir -p python$$$$ 50 cd python$$$$ 48 cd $$$${SCRATCH} 49 mkdir -p python$$$$$$$$ 50 cd python$$$$$$$$ 51 51 52 52 export CONTROL=CONTROL 53 53 54 cat >$${CONTROL}<<EOF 54 cat >$$$${CONTROL}<<EOF 55 $$control_content 55 56 EOF 56 57 57 58 58 submit.py --controlfile=$$ {CONTROL} --inputdir=./work --outputdir=./work 1> prot 2>&159 submit.py --controlfile=$$$${CONTROL} --inputdir=./work --outputdir=./work 1> prot 2>&1 59 60 60 61 if [ $? -eq 0 ] ; then 61 62 l=0 62 for muser in `grep -i MAILOPS $$ {CONTROL}`; do63 if [ $$ {l} -gt 0 ] ; then64 mail -s flex.$$ {HOST}.$$$$$${muser} <prot63 for muser in `grep -i MAILOPS $$$${CONTROL}`; do 64 if [ $$$${l} -gt 0 ] ; then 65 mail -s flex.$$$${HOST}.$$$$$$$$ $$$${muser} <prot 65 66 fi 66 l=$(($$ {l}+1))67 l=$(($$$${l}+1)) 67 68 done 68 69 else 69 70 l=0 70 for muser in `grep -i MAILFAIL $$ {CONTROL}`; do71 if [ $$ {l} -gt 0 ] ; then72 mail -s "ERROR! flex.$$ {HOST}.$$$$"$${muser} <prot71 for muser in `grep -i MAILFAIL $$$${CONTROL}`; do 72 if [ $$$${l} -gt 0 ] ; then 73 mail -s "ERROR! flex.$$$${HOST}.$$$$$$$$" $$$${muser} <prot 73 74 fi 74 l=$(($$ {l}+1))75 l=$(($$$${l}+1)) 75 76 done 76 77 fi
Note: See TracChangeset
for help on using the changeset viewer.