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

#ISSM CONFIGURATION 
ISSM_CONFIG='--prefix=$ISSM_DIR \
	--with-matlab-dir=$MATLAB_DIR \
	--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 -lpmpich -lmpich -lmpl" \
	--with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install  \
	--with-scalapack-dir=$ISSM_DIR/externalpackages/petsc/install/ \
	--with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install \
	--with-metis-dir=$ISSM_DIR/externalpackages/petsc/install \
	--with-m1qn3-dir=$ISSM_DIR/externalpackages/m1qn3/install \
	--with-tao-dir=$ISSM_DIR/externalpackages/tao/install \
	--with-numthreads=8 \
	--enable-debugging \
	--enable-development'

#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

#repo:
REPOSITORY="https://issm.ess.uci.edu/svn/issm/issm/trunk-jpl"

#-----------------------------------#
# 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                
						m1qn3     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: 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]"
##                                                                   bamg mesh   FS                     
MATLAB_NROPTIONS="'exclude',[218 234 235 412 413 414 417 418 420 514 701 702 703 422 404 421 503 507 510]"
PYTHON_NROPTIONS=""
