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

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

#ISSM CONFIGURATION
ISSM_CONFIG='--prefix=$ISSM_DIR \
				--disable-static \
				--without-kriging \
				--without-kml \
				--without-GiaIvins \
				--without-Love \
				--with-matlab-dir=$MATLAB_PATH \
				--with-python-dir=/usr \
				--with-python-numpy-dir=/usr/local/lib/python2.7/dist-packages/numpy \
				--with-fortran-lib="-L/usr/lib/gcc/x86_64-linux-gnu/4.9 -lgfortran" \
				--with-mpi-include=$ISSM_DIR/externalpackages/mpich/install/include  \
				--with-mpi-libflags="-L$ISSM_DIR/externalpackages/mpich/install/lib -lmpi -lmpicxx -lmpifort" \
				--with-metis-dir=$ISSM_DIR/externalpackages/petsc/install \
				--with-blas-lapack-dir=$ISSM_DIR/externalpackages/petsc/install \
				--with-scalapack-dir=$ISSM_DIR/externalpackages/petsc/install \
				--with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install \
				--with-triangle-dir=$ISSM_DIR/externalpackages/triangle/install \
				--with-gsl-dir=$ISSM_DIR/externalpackages/gsl/install \
				--with-adolc-dir=$ISSM_DIR/externalpackages/adolc/install \
				--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
#
# NOTE: The PETSc libraries are compiled but not used as they conflict with
#		ADOL-C: PETSc is really just being used as an installer for other
#		external packages.
EXTERNALPACKAGES="autotools install.sh
					 cmake install.sh
					 mpich install-3.2-linux64.sh
					 petsc install-3.7-linux64.sh
					 triangle install-linux64.sh
					 gsl install-linux64.sh
					 adolc install.sh
					 shell2junit install.sh"

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

# Number of CPUs used in ISSM compilation
#
# NOTE: One is usually safer as some packages are very sensitive to parallel
# 		compilation.
#
NUMCPUS_INSTALL=5

# Number of CPUs used in the nightly runs
NUMCPUS_RUN=4

# Nightly run options
#
# See documentation in test/NightlyRun/runme.* for more information.
#
# NOTE:
# - test3010 is skipped because it triggers GEMB module and a subsequent
#	failure on ampioff configuration (really, likely a segmentation fault)
#
MATLAB_NROPTIONS="'benchmark','adolc','id',[3001:3019],'exclude',3010"
PYTHON_NROPTIONS="--benchmark=adolc -i 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 --exclude=3010"
