[16616] | 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 \
|
---|
[19105] | 11 | --with-mpi-libflags="-L$ISSM_DIR/externalpackages/mpich/install/lib -lmpich" \
|
---|
[16616] | 12 | --with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install \
|
---|
[19105] | 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 \
|
---|
[16711] | 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\
|
---|
[16616] | 18 | --with-chaco-dir="$ISSM_DIR/externalpackages/chaco/install" \
|
---|
[16627] | 19 | --with-dakota-dir=$ISSM_DIR/externalpackages/dakota/install \
|
---|
[16671] | 20 | --with-boost-dir=$ISSM_DIR/externalpackages/boost/install/ \
|
---|
[19105] | 21 | --with-fortran-lib="-L/usr/lib/gcc/x86_64-linux-gnu/4.6/ -lgfortran" \
|
---|
| 22 | --with-m1qn3-dir=$ISSM_DIR/externalpackages/m1qn3/install \
|
---|
[18301] | 23 | --with-numthreads=18 \
|
---|
[17753] | 24 | --enable-development \
|
---|
[16616] | 25 | --enable-debugging '
|
---|
| 26 |
|
---|
| 27 | #MATLAB path
|
---|
| 28 | MATLAB_PATH="/usr/local/matlab80/"
|
---|
| 29 |
|
---|
| 30 | #PYTHON and MATLAB testing
|
---|
| 31 | MATLAB_TEST=1
|
---|
[16711] | 32 | PYTHON_TEST=1
|
---|
[16616] | 33 |
|
---|
| 34 | #execution path used for parallel runs
|
---|
| 35 | EXECUTION_PATH=$ISSM_DIR/execution
|
---|
| 36 |
|
---|
[16877] | 37 | #repo:
|
---|
| 38 | REPOSITORY="https://issm.ess.uci.edu/svn/issm/issm/trunk-jpl"
|
---|
| 39 |
|
---|
[16616] | 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
|
---|
[16630] | 49 | ISSM_EXTERNALPACKAGES="install"
|
---|
[16616] | 50 | EXTERNALPACKAGESDIR=$ISSM_DIR/externalpackages
|
---|
| 51 |
|
---|
| 52 | #List of external pakages to be installed and their installation scripts
|
---|
[19105] | 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
|
---|
[16711] | 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
|
---|
[19105] | 67 | m1qn3 install.sh
|
---|
[16711] | 68 | numpy install-linux64.sh
|
---|
| 69 | scipy install-linux64.sh
|
---|
| 70 | hdf5 install.sh
|
---|
| 71 | netcdf install.sh
|
---|
| 72 | netcdf-python install.sh
|
---|
[19105] | 73 | shell2junit install.sh"
|
---|
[16616] | 74 |
|
---|
[16711] | 75 |
|
---|
[16616] | 76 | #---------------------#
|
---|
| 77 | # 4: ISSM Compilation #
|
---|
| 78 | #---------------------#
|
---|
| 79 |
|
---|
| 80 | #ISSM_COMPILATION can have 2 values:
|
---|
| 81 | # - "yes" compile ISSM
|
---|
| 82 | # - "no" do not compile ISSM
|
---|
[16652] | 83 | ISSM_COMPILATION="yes"
|
---|
[16616] | 84 |
|
---|
| 85 | #------------------------#
|
---|
[19105] | 86 | # 5: Nightly run options #
|
---|
[16616] | 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]"
|
---|
[17374] | 100 | MATLAB_NROPTIONS="'exclude',[119,514,701,702,435]"
|
---|
| 101 | PYTHON_NROPTIONS="--exclude 119 514 701 702 435"
|
---|