source: flex_extract.git/python/compilejob.temp @ d69b677

ctbtodevfeature/makefilesorigin/task/language-editingtask/language-editing
Last change on this file since d69b677 was d69b677, checked in by Anne Philipp <bscannephilipp@…>, 3 years ago

original ECMWFDATA v7.0.2 from flexpart.eu

  • Property mode set to 100644
File size: 2.0 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/spatlh00/lh0
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# -o /scratch/ms/no/sbc/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.0
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=
36#  export ECMWFDATA=$FLEXPART_ROOT/ECMWFDATA7.0
37#  export PYTHONPATH=$ECMWFDATA/python
38#  export PATH=${PATH}:$ECMWFDATA/python
39  export MAKEFILE=Makefile.gfortran
40  ;;
41  *cca*)
42  module switch PrgEnv-cray PrgEnv-intel
43  module load grib_api
44  module load emos
45  module load python
46  echo ${GROUP}
47  echo ${HOME}
48  echo $HOME | awk -F / '{print $1, $2, $3, $4}'
49  export GROUP=`echo $HOME | awk -F / '{print $4}'`
50  export SCRATCH=/scratch/ms/${GROUP}/${USER}
51  export FLEXPART_ROOT_SCRIPTS=
52#  export ECMWFDATA=$FLEXPART_ROOT/ECMWFDATA7.0
53#  export PYTHONPATH=$ECMWFDATA/python
54#  export PATH=${PATH}:$ECMWFDATA/python
55  export MAKEFILE=Makefile.CRAY
56  ;;
57esac
58
59mkdir -p $FLEXPART_ROOT_SCRIPTS/ECMWFDATA$VERSION
60cd $FLEXPART_ROOT_SCRIPTS/ECMWFDATA$VERSION   # if FLEXPART_ROOT is not set this means cd to the home directory
61tar -xvf $SCRATCH/ECMWFDATA$VERSION.tar
62cd src
63\rm *.o *.mod CONVERT2
64make -f $MAKEFILE >flexcompile 2>flexcompile
65
66ls -l CONVERT2 >>flexcompile
67if [ $? -eq 0 ]; then
68  echo 'SUCCESS!' >>flexcompile
69  mail -s flexcompile.$HOST.$$ $USER <flexcompile
70else
71  echo Environment: >>flexcompile
72  env >> flexcompile
73  mail -s "ERROR! flexcompile.$HOST.$$" $USER <flexcompile
74fi
75
76
77
78
79
80
81
82
83
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG