source: flex_extract.git/source/pythontest/TestData/compilejob.test @ c5074d2

devfeature/makefilesorigin/task/language-editingsysinstalltask/language-editing
Last change on this file since c5074d2 was c5074d2, checked in by Anne Philipp <anne.philipp@…>, 2 years ago

added making of namelist file and jobscript via genshi templates

  • Property mode set to 100644
File size: 1.9 KB
Line 
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
7#SBATCH --workdir=/scratch/ms/testgroup/testuser
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 ns
18##PBS -S /usr/bin/ksh
19##PBS -o /scratch/ms/testgroup/testuser/flex_ecmwf.${Jobname}.${Job_ID}.out
20# job output is in .ecaccess_DO_NOT_REMOVE
21##PBS -j oe
22##PBS -V
23##PBS -l EC_threads_per_task=1
24##PBS -l EC_memory_per_task=3200MB
25
26set -x
27export VERSION=7.1
28case ${HOST} in
29  *ecg*)
30  module load python
31  module unload grib_api
32  module unload emos
33  module load grib_api/1.14.5
34  module load emos/437-r64
35  export FLEXPART_ROOT_SCRIPTS=fp_root_test_path
36  export MAKEFILE=Makefile.TEST
37  ;;
38  *cca*)
39  module switch PrgEnv-cray PrgEnv-intel
40  module load grib_api
41  module load emos
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}
48  export FLEXPART_ROOT_SCRIPTS=fp_root_test_path
49  export MAKEFILE=Makefile.TEST
50  ;;
51esac
52
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
56cd src
57\rm *.o *.mod CONVERT2
58make -f ${MAKEFILE} >flexcompile 2>flexcompile
59
60ls -l CONVERT2 >>flexcompile
61if [ $? -eq 0 ]; then
62  echo 'SUCCESS!' >>flexcompile
63  mail -s flexcompile.${HOST}.$$ ${USER} <flexcompile
64else
65  echo Environment: >>flexcompile
66  env >> flexcompile
67  mail -s "ERROR! flexcompile.${HOST}.$$" ${USER} <flexcompile
68fi
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG