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

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

#ISSM main directory (full path)
ISSM_DIR="/Users/larour/issm-uci"
ISSM_TIER="/Users/larour/issm-uci/trunk-jpl/cron/trunk-jpl"

#ISSM Architecture
ISSM_ARCH="macosx-gnu"

#Machine configuration
MACHINE="macosx-gil"

#COMPILATION CONFIGURATION FILE
COMPILE_CONFIG_FILE="config-macosx64-larour.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"

#execution path used for parallel runs
EXECUTION_PATH="/Users/larour/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="link"
EXTERNALPACKAGESDIR="/Users/larour/issm-uci/trunk-jpl/externalpackages"

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

#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="yes"

#Sender email address
EMAIL_ADRESS="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 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="'id',[101:136 138:151]"

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

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

MATLABBIN="/Applications/MATLAB_R2010a.app/bin/matlab"

#Specialty one: 
export  FC=gfortran
