1 |
|
---|
2 | #-------------------------------#
|
---|
3 | # 1: ISSM general configuration #
|
---|
4 | #-------------------------------#
|
---|
5 |
|
---|
6 | #ISSM CONFIGURATION
|
---|
7 | ISSM_CONFIG='--prefix=$ISSM_DIR\
|
---|
8 | --with-matlab-dir=$MATLAB_DIR \
|
---|
9 | --with-triangle-dir=$ISSM_DIR/externalpackages/triangle/install \
|
---|
10 | --with-mpi-include=$ISSM_DIR/externalpackages/mpich/install/include \
|
---|
11 | --with-mpi-libflags="-L$ISSM_DIR/externalpackages/mpich/install/lib -lmpich" \
|
---|
12 | --with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install \
|
---|
13 | --with-metis-dir=$ISSM_DIR/externalpackages/petsc/install \
|
---|
14 | --with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install \
|
---|
15 | --with-blas-lapack-dir=$ISSM_DIR/externalpackages/petsc/install \
|
---|
16 | --with-python-dir=$ISSM_DIR/externalpackages/python/install\
|
---|
17 | --with-python-numpy-dir=$ISSM_DIR/externalpackages/python/install/lib/python2.7/site-packages/numpy/core/include/numpy\
|
---|
18 | --with-chaco-dir="$ISSM_DIR/externalpackages/chaco/install" \
|
---|
19 | --with-dakota-dir=$ISSM_DIR/externalpackages/dakota/install \
|
---|
20 | --with-boost-dir=$ISSM_DIR/externalpackages/boost/install/ \
|
---|
21 | --with-fortran-lib="-L/usr/lib/gcc/x86_64-linux-gnu/4.6/ -lgfortran" \
|
---|
22 | --with-m1qn3-dir=$ISSM_DIR/externalpackages/m1qn3/install \
|
---|
23 | --with-numthreads=18 \
|
---|
24 | --enable-development \
|
---|
25 | --enable-debugging '
|
---|
26 |
|
---|
27 | #MATLAB path
|
---|
28 | MATLAB_PATH="/usr/local/matlab80/"
|
---|
29 |
|
---|
30 | #PYTHON and MATLAB testing
|
---|
31 | MATLAB_TEST=1
|
---|
32 | PYTHON_TEST=1
|
---|
33 |
|
---|
34 | #execution path used for parallel runs
|
---|
35 | EXECUTION_PATH=$ISSM_DIR/execution
|
---|
36 |
|
---|
37 | #repo:
|
---|
38 | REPOSITORY="https://issm.ess.uci.edu/svn/issm/issm/trunk-jpl"
|
---|
39 |
|
---|
40 | #-----------------------------------#
|
---|
41 | # 3: External packages installation #
|
---|
42 | #-----------------------------------#
|
---|
43 |
|
---|
44 | #ISSM_EXTERNALPACKAGES can have 3 values:
|
---|
45 | # - "install" install all external packages listed below
|
---|
46 | # - "copy" copy existing directories (EXTERNALPACKAGESDIR)
|
---|
47 | # - "none" leave external packages as is
|
---|
48 | # ->skip to section 4
|
---|
49 | ISSM_EXTERNALPACKAGES="install"
|
---|
50 | EXTERNALPACKAGESDIR=$ISSM_DIR/externalpackages
|
---|
51 |
|
---|
52 | #List of external pakages to be installed and their installation scripts
|
---|
53 | EXTERNALPACKAGES="autotools install.sh
|
---|
54 | matlab install.sh
|
---|
55 | mpich install-3.0-linux64.sh
|
---|
56 | cmake install.sh
|
---|
57 | petsc install-3.5-linux64.sh
|
---|
58 | triangle install-linux64.sh
|
---|
59 | boost install.sh
|
---|
60 | dakota install-5.3.1-linux64.sh
|
---|
61 | chaco install.sh
|
---|
62 | python install-2.7.3-linux64.sh
|
---|
63 | nose install-linux64-python2.sh
|
---|
64 | blas install-linux64.sh
|
---|
65 | lapack install-linux64.sh
|
---|
66 | git install.sh
|
---|
67 | m1qn3 install.sh
|
---|
68 | numpy install-linux64.sh
|
---|
69 | scipy install-linux64.sh
|
---|
70 | hdf5 install.sh
|
---|
71 | netcdf install.sh
|
---|
72 | netcdf-python install.sh
|
---|
73 | shell2junit install.sh"
|
---|
74 |
|
---|
75 |
|
---|
76 | #---------------------#
|
---|
77 | # 4: ISSM Compilation #
|
---|
78 | #---------------------#
|
---|
79 |
|
---|
80 | #ISSM_COMPILATION can have 2 values:
|
---|
81 | # - "yes" compile ISSM
|
---|
82 | # - "no" do not compile ISSM
|
---|
83 | ISSM_COMPILATION="yes"
|
---|
84 |
|
---|
85 | #------------------------#
|
---|
86 | # 5: Nightly run options #
|
---|
87 | #------------------------#
|
---|
88 |
|
---|
89 | #number of cpus used in ISSM installation and compilation (one is usually
|
---|
90 | #safer as some packages are very sensitive to parallel compilation)
|
---|
91 | NUMCPUS_INSTALL=8
|
---|
92 |
|
---|
93 | #number of cpus used in the nightly runs.
|
---|
94 | NUMCPUS_RUN=8
|
---|
95 |
|
---|
96 | #Nightly run options. The matlab routine runme.m will be called
|
---|
97 | #as follows: runme($MATLAB_NROPTIONS). The options must be understandable
|
---|
98 | #by Matlab and runme.m
|
---|
99 | #ex: "'id',[101 102 103]"
|
---|
100 | MATLAB_NROPTIONS="'exclude',[119,514,701,702,435]"
|
---|
101 | PYTHON_NROPTIONS="--exclude 119 514 701 702 435"
|
---|