
#-------------------------------#
# 1: ISSM general configuration #
#-------------------------------#

#MATLAB path
MATLAB_PATH="/usr/local/MATLAB/R2015a"

#ISSM CONFIGURATION 
ISSM_CONFIG='--prefix=$ISSM_DIR\
	--disable-static \
	--with-matlab-dir=$MATLAB_PATH \
	--with-python-dir=$ISSM_DIR/externalpackages/python/install \
	--with-python-numpy-dir=$ISSM_DIR/externalpackages/python/install/lib/python2.7/site-packages/numpy \
	--with-triangle-dir=$ISSM_DIR/externalpackages/triangle/install \
	--with-mpi-include=$ISSM_DIR/externalpackages/mpich/install/include  \
	--with-mpi-libflags="-L$ISSM_DIR/externalpackages/mpich/install/lib -lmpi -lmpicxx -lmpifort" \
	--with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install \
	--with-metis-dir=$ISSM_DIR/externalpackages/petsc/install \
	--with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install \
	--with-blas-lapack-dir=$ISSM_DIR/externalpackages/petsc/install \
	--with-scalapack-dir=$ISSM_DIR/externalpackages/petsc/install/ \
	--with-boost-dir=$ISSM_DIR/externalpackages/boost/install/ \
	--with-fortran-lib="-L/usr/lib/gcc/x86_64-linux-gnu/4.9/ -lgfortran" \
	--with-numthreads=4 \
	--enable-development \
	--enable-debugging '

#PYTHON and MATLAB testing
MATLAB_TEST=1
PYTHON_TEST=1

#-----------------------------------#
# 3: External packages installation #
#-----------------------------------#

#List of external pakages to be installed and their installation scripts
EXTERNALPACKAGES="autotools     install.sh    
						cmake         install.sh                
						mpich         install-3.2-linux64.sh
						petsc         install-3.7-linux64.sh    
						triangle      install-linux64.sh        
						boost         install-1.55-linux.sh
						python        install-2.7.3-linux64.sh
                  nose          install-linux64-python2.sh
                  numpy         install-linux64.sh
						gshhg         install.sh
						gdal          install-1.10-linux64.sh
						hdf5          install.sh
						netcdf        install.sh
						netcdf-cxx    install.sh
						netcdf-python install.sh
						gmt           install.sh
						gmsh          install.sh
						shell2junit   install.sh"

#-----------------#
# 4: test options #
#-----------------#

#number of cpus used in ISSM installation and compilation (one is usually
#safer as some packages are very sensitive to parallel compilation)
NUMCPUS_INSTALL=5

#number of cpus used in the nightly runs. (pb of access to all_vertices.txt if more than 1)
NUMCPUS_RUN=1

#Nightly run options. The matlab routine runme.m will be called
#as follows: runme($MATLAB_NROPTIONS). The options must be understandable
#by Matlab and runme.m
#ex: "'id',[101 102 103]"
PYTHON_NROPTIONS="--benchmark=slr"
MATLAB_NROPTIONS="'benchmark','slr'"
