#
########### Configuration file for Eric Larour's Jenkins run on MaxOSX ############

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

#Nightly run name
NAME="ISSM matlab tests on MacOSX"

#ISSM Architecture
ISSM_ARCH="macosx-gnu"

#ISSM CONFIGURATION 
ISSM_CONFIG='--prefix=$ISSM_DIR \
	--with-matlab-dir=$MATLAB_DIR \
	--with-triangle-dir=$ISSM_DIR/externalpackages/triangle/install \
	--with-metis-dir=$ISSM_DIR/externalpackages/metis/install \
	--with-mpi-include=$ISSM_DIR/externalpackages/mpich/install/include  \
	--with-mpi-libflags=" $ISSM_DIR/externalpackages/mpich/install/lib/libpmpich.a $ISSM_DIR/externalpackages/mpich/install/lib/libmpich.a $ISSM_DIR/externalpackages/mpich/install/lib/libmpl.a " \
	--with-fortran-lib="/usr/local/gfortran/lib/libgfortran.a" \
	--with-math-lib="/usr/lib/libm.dylib" \
	--with-graphics-lib="/usr/X11/lib/libX11.dylib" \
	--with-cxxoptflags=" -fno-common -no-cpp-precomp -fexceptions -arch x86_64 -mmacosx-version-min=10.5  -O3 -DNDEBUG -w "\
	--with-numthreads=8 \
	--with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install  \
	--with-petsc-arch=$ISSM_ARCH \
	--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-tao-dir=$ISSM_DIR/externalpackages/tao/install'

#MATLAB path
MATLAB_PATH="/Applications/MATLAB_R2011b.app/"

#PYTHON and MATLAB testing
MATLAB_TEST=1
PYTHON_TEST=0

#execution path used for parallel runs
EXECUTION_PATH=$ISSM_DIR/execution

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

#ISSM_EXTERNALPACKAGES can have 3 values:
# - "install" install all external packages listed below
# - "copy"    copy existing directories (EXTERNALPACKAGESDIR)
# - "none"    leave external packages as is
#             ->skip to section 4
ISSM_EXTERNALPACKAGES="install"
EXTERNALPACKAGESDIR=$ISSM_DIR/externalpackages

#List of external pakages to be installed and their installation scripts
EXTERNALPACKAGES="autotools install.sh                
						matlab    install.sh                
						mpich     install-3.0-macosx64.sh    
						cmake     install.sh                
						petsc     install-3.4-macosx64.sh    
						tao       install-2.2.sh
						triangle  install-macosx64.sh 
						shell2junit  install.sh "


#---------------------#
# 4: ISSM Compilation #
#---------------------#

#ISSM_COMPILATION can have 2 values:
# - "yes" compile ISSM
# - "no"  do not compile ISSM
ISSM_COMPILATION="yes"

#----------------------#
# 5: Mail notification #
#----------------------#

#Mail delivery. If SKIPMAIL="no", the html nightly run report will be
#sent to the adresses present in $ISSM_DIR/cron/mailinglist.
SKIPMAIL="no"

#Sender email address
EMAIL_ADRESS="eric.larour@jpl.nasa.gov"

#Mailing list
MAILINGLIST="eric.larour@jpl.nasa.gov"

#------------------------#
# 6: Nightly run 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=8

#number of cpus used in the nightly runs.
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]"
MATLAB_NROPTIONS=""
PYTHON_NROPTIONS=""
