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

#ISSM CONFIGURATION
ISSM_CONFIG='\
    --prefix="${ISSM_DIR}" \
    --disable-shared \
    --with-javascript \
    --without-Love \
    --without-kml \
    --without-kriging \
    --with-triangle-dir="${ISSM_DIR}/externalpackages/triangle/install-javascript" \
    --with-gsl-dir="$ISSM_DIR/externalpackages/gsl/install-javascript"\
'

#PYTHON and MATLAB testing
MATLAB_TEST=0
PYTHON_TEST=0
JAVASCRIPT_TEST=1

# Environment
#export EMCC_DEBUG=1 # Uncomment to enable debugging
export EMCC_CFLAGS="-s ERROR_ON_UNDEFINED_SYMBOLS=0" # Required after v1.38.14

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

#List of external pakages to be installed and their installation scripts
EXTERNALPACKAGES="autotools     install.sh
						cmake         install.sh
						emscripten    install.sh
						gsl           install-javascript.sh
						triangle      install-javascript.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=10

#number of cpus used in the nightly runs.
NUMCPUS_RUN=5

#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="--exclude 119 243 514 701 702 703 435 --exclude_name 'Dakota'"
#MATLAB_NROPTIONS="'exclude',[119,243,514,701,702,435,IdFromString('Dakota')]"
