########### Configuration file for Mathieu Morlighem's nightly run on Linux ############

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

#ISSM main directory (full path)
ISSM_DIR="/u/astrid-r1b/schlegel/issmuci"
ISSM_TIER="/u/astrid-r1b/schlegel/issmuci/trunk-jpl/cron/trunk-jpl"
#ISSM_TIER="/u/astrid-r1b/seroussi/svn/issm/trunk/cron/issm2.2"

#ISSM Architecture
ISSM_ARCH="linux-gnu-amd64"

#Machine configuration
MACHINE="astrid"

#COMPILATION CONFIGURATION FILE
COMPILE_CONFIG_FILE="config-linux64-astrid.sh"

#----------------------#
# 2: ISSM Installation #
#----------------------#

#ISSM_INSTALLATION can have 3 values:
# - "checkout" the existing version of the code will be erased and
#              the latest version will be checked out
# - "update"   the directory won't be erased but ISSM will be updated
#              ->skip to section 3
# - "none"     leave ISSM as is in its directory
#              ->skip to section 3
ISSM_INSTALLATION="checkout"

#SVN repository
REPOSITORY="https://issm.ess.uci.edu/svn/issm/issm/trunk-jpl"
#REPOSITORY="http://s383-rhat/issm/svn/issm/branches/issm2.2"

#execution path used for parallel runs
EXECUTION_PATH="/u/astrid-r1b/schlegel/ExecutionNightlyRun"

#-----------------------------------#
# 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="/u/astrid-r1b/schlegel/issmuci/trunk-jpl/externalpackages"

#List of external pakages to be installed
EXTERNALPACKAGES="autoconf automake matlab mpich2 petsc metis triangle dakota chaco yams"

#Corresponding list of installation files to use
EXTERNALPACKAGES_CONFIGS=" install.sh install.sh install.sh install-1.0.2-linux64.sh install-3.2-linux64.sh install-4.0-linux64.sh install-linux64.sh install-linux64-astrid.sh install.sh"
EXTERNALPACKAGES_NUMCPUS=" 1 1 1 1 1 1"

#---------------------#
# 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_TIER/cron/mailinglist.
SKIPMAIL="no"

#Sender email address
EMAIL_ADRESS="schlegel@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=1

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

#Nightly run options. The matlab routine nightlyrun.m will be called
#as follows: nightlyrun($NROPTIONS). The options must be understandable
#by Matlab and nightlyrun.m
#ex: "'id',[101 102 103]"

NROPTIONS="'benchmark','all'"

#------------------------#
# 7: Matlab#
#------------------------#

#MATLAB path
MATLAB_PATH="/usr/local/pkgs/matlab-7.6/"

MATLABBIN="/usr/local/pkgs/matlab-7.6/bin/matlab"
