Index: /issm/trunk-jpl/cron/configs/macosx64_larour
===================================================================
--- /issm/trunk-jpl/cron/configs/macosx64_larour	(revision 11634)
+++ /issm/trunk-jpl/cron/configs/macosx64_larour	(revision 11635)
@@ -48,5 +48,5 @@
 # - "none"    leave external packages as is
 #             ->skip to section 4
-ISSM_EXTERNALPACKAGES="install"
+ISSM_EXTERNALPACKAGES="copy"
 EXTERNALPACKAGESDIR="/Users/larour/issm-uci/trunk-jpl/externalpackages"
 
@@ -73,8 +73,8 @@
 #Mail delivery. If SKIPMAIL="no", the html nightly run report will be
 #sent to the adresses present in $ISSM_TIER/cron/mailinglist.
-SKIPMAIL="no"
+SKIPMAIL="yes"
 
 #Sender email address
-EMAIL_ADRESS="schlegel@jpl.nasa.gov"
+EMAIL_ADRESS="eric.larour@jpl.nasa.gov"
 
 #------------------------#
@@ -84,8 +84,8 @@
 #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
+NUMCPUS_INSTALL=4
 
 #number of cpus used in the nightly runs.
-NUMCPUS_RUN=7
+NUMCPUS_RUN=1
 
 #Nightly run options. The matlab routine nightlyrun.m will be called
@@ -102,5 +102,5 @@
 
 #MATLAB path
-MATLAB_PATH="/usr/local/pkgs/matlab-7.6/"
+MATLAB_PATH="/Applications/MATLAB_R2010a.app/"
 
-MATLABBIN="/usr/local/pkgs/matlab-7.6/bin/matlab"
+MATLABBIN="/Applications/MATLAB_R2010a.app/bin/matlab"
Index: /issm/trunk-jpl/cron/configs/macosx64_larour_validation
===================================================================
--- /issm/trunk-jpl/cron/configs/macosx64_larour_validation	(revision 11635)
+++ /issm/trunk-jpl/cron/configs/macosx64_larour_validation	(revision 11635)
@@ -0,0 +1,106 @@
+#
+########### 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-mathieu.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=4
+
+#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,401:499"
+
+
+#------------------------#
+# 7: Matlab#
+#------------------------#
+
+#MATLAB path
+MATLAB_PATH="/Applications/MATLAB_R2010a.app/"
+
+MATLABBIN="/Applications/MATLAB_R2010a.app/bin/matlab"
Index: /issm/trunk-jpl/cron/nightlyrun.sh
===================================================================
--- /issm/trunk-jpl/cron/nightlyrun.sh	(revision 11634)
+++ /issm/trunk-jpl/cron/nightlyrun.sh	(revision 11635)
@@ -159,4 +159,12 @@
 	rm -rf externalpackages
 	cp -Rf $EXTERNALPACKAGESDIR ./
+
+elif [ "$ISSM_EXTERNALPACKAGES" == "link" ]
+then
+
+	#erase externapackages, and link with externalpackages_dir
+	cd $ISSM_TIER
+	rm -rf externalpackages
+	ln -s -Rf $EXTERNALPACKAGESDIR 
 
 elif [ "$ISSM_EXTERNALPACKAGES" == "none" ]
