Index: /issm/trunk-jpl/externalpackages/boost/configs/1.55/ordered_index.hpp.patch
===================================================================
--- /issm/trunk-jpl/externalpackages/boost/configs/1.55/ordered_index.hpp.patch	(revision 23626)
+++ /issm/trunk-jpl/externalpackages/boost/configs/1.55/ordered_index.hpp.patch	(revision 23626)
@@ -0,0 +1,4 @@
+270c270
+<   reverse_iterator       rbegin(){return make_reverse_iterator(end());}
+---
+>   reverse_iterator       rbegin(){return boost::make_reverse_iterator(end());}
Index: /issm/trunk-jpl/externalpackages/boost/install-1.55-lonestar.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/boost/install-1.55-lonestar.sh	(revision 23625)
+++ /issm/trunk-jpl/externalpackages/boost/install-1.55-lonestar.sh	(revision 23626)
@@ -37,2 +37,4 @@
 mkdir ../install/bin
 cp bjam ../install/bin
+
+patch install/include/boost/multi_index/ordered_index.hpp ./configs/1.55/ordered_index.hpp.patch
Index: /issm/trunk-jpl/externalpackages/dakota/configs/6.2/CMakeLists.txt.lonestar.patch
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/configs/6.2/CMakeLists.txt.lonestar.patch	(revision 23625)
+++ /issm/trunk-jpl/externalpackages/dakota/configs/6.2/CMakeLists.txt.lonestar.patch	(revision 23626)
@@ -3,4 +3,4 @@
 ---
 > # TODO: Can't this be integrated into the following logic?
-> set(BLAS_LIBS "-L/opt/apps/intel/11.1/mkl/lib/em64t/ -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -L/usr/lib64/ -lpthread -lm")
-> set(LAPACK_LIBS "-L/opt/apps/intel/11.1/mkl/lib/em64t/ -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -L/usr/lib64/ -lpthread -lm")
+> set(BLAS_LIBS "-L$TACC_MKL_LIB -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm")
+> set(LAPACK_LIBS "-L$TACC_MKL_LIB -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm")
Index: /issm/trunk-jpl/externalpackages/dakota/configs/6.2/DakotaInterface.patch
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/configs/6.2/DakotaInterface.patch	(revision 23626)
+++ /issm/trunk-jpl/externalpackages/dakota/configs/6.2/DakotaInterface.patch	(revision 23626)
@@ -0,0 +1,16 @@
+112c112
+<       Cerr << "\nError: failure opening " << ampl_col << std::endl;
+---
+>       Cerr << "\nError: failure opening " << col.c_str() << std::endl;
+121c121
+< 	Cerr << "\nError: failure reading AMPL col file " << ampl_col 
+---
+> 	Cerr << "\nError: failure reading AMPL col file " << col.c_str() 
+129c129
+<       Cerr << "\nError: failure opening " << ampl_row << std::endl;
+---
+>       Cerr << "\nError: failure opening " << row.c_str() << std::endl;
+142c142
+< 	Cerr << "\nError: failure reading AMPL row file " << ampl_row 
+---
+> 	Cerr << "\nError: failure reading AMPL row file " << row.c_str()
Index: /issm/trunk-jpl/externalpackages/dakota/configs/6.2/MainEffectsExcelOutput.patch
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/configs/6.2/MainEffectsExcelOutput.patch	(revision 23626)
+++ /issm/trunk-jpl/externalpackages/dakota/configs/6.2/MainEffectsExcelOutput.patch	(revision 23626)
@@ -0,0 +1,4 @@
+276c276
+< 	     std::cout << ss << std::endl;
+---
+> 	     std::cout << ss.str() << std::endl;
Index: /issm/trunk-jpl/externalpackages/dakota/configs/6.2/NKM_KrigingModel.patch
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/configs/6.2/NKM_KrigingModel.patch	(revision 23626)
+++ /issm/trunk-jpl/externalpackages/dakota/configs/6.2/NKM_KrigingModel.patch	(revision 23626)
@@ -0,0 +1,6 @@
+9d8
+< 
+86c85
+< 	      << "has not been implemented." << std::cerr;
+---
+> 	      << "has not been implemented." << std::endl;
Index: /issm/trunk-jpl/externalpackages/dakota/install-6.2-lonestar.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/install-6.2-lonestar.sh	(revision 23625)
+++ /issm/trunk-jpl/externalpackages/dakota/install-6.2-lonestar.sh	(revision 23626)
@@ -22,5 +22,6 @@
 export DAK_SRC=$ISSM_DIR/externalpackages/dakota/src
 export DAK_BUILD=$ISSM_DIR/externalpackages/dakota/build
-export MPIHOME=/opt/cray/mpt/default/gni/mpich-intel/14.0/
+export MPIHOME=/opt/cray/pe/mpt/7.7.3/gni/mpich-intel/16.0/
+
 cp $DAK_SRC/cmake/BuildDakotaTemplate.cmake $DAK_SRC/cmake/BuildDakotaCustom.cmake
 patch $DAK_SRC/cmake/BuildDakotaCustom.cmake configs/6.2/BuildDakotaCustom.cmake.patch
@@ -32,11 +33,15 @@
 patch src/src/NonDLocalReliability.cpp configs/6.2/NonDLocalReliability.cpp.patch
 patch src/packages/pecos/src/pecos_global_defs.hpp configs/6.2/pecos_global_defs.hpp.patch
+patch src/packages/surfpack/src/surfaces/nkm/NKM_KrigingModel.cpp configs/6.2/NKM_KrigingModel.patch
+patch src/packages/DDACE/src/Analyzer/MainEffectsExcelOutput.cpp configs/6.2/MainEffectsExcelOutput.patch
+patch src/src/DakotaInterface.cpp configs/6.2/DakotaInterface.patch
 
 #Configure dakota
 cd $DAK_BUILD
 
-cmake -D CMAKE_C_COMPILER=/opt/apps/intel16/cray_mpich/7.3.0/bin/mpicc \
-	   -D CMAKE_CXX_COMPILER=/opt/apps/intel16/cray_mpich/7.3.0/bin/mpicxx \
-	   -D CMAKE_Fortran_COMPILER=/opt/apps/intel16/cray_mpich/7.3.0/bin/mpif77 \
+cmake -D CMAKE_C_COMPILER=mpicc \
+	   -D CMAKE_CXX_COMPILER=mpicxx \
+	   -D CMAKE_Fortran_COMPILER=mpif77 \
+		-D MPIEXEC_EXECUTABLE=/opt/apps/tacc/bin/ibrun \
 		-DHAVE_ACRO=off \
 		-DHAVE_JEGA=off \
Index: /issm/trunk-jpl/externalpackages/petsc/install-3.6-lonestar.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.6-lonestar.sh	(revision 23625)
+++ /issm/trunk-jpl/externalpackages/petsc/install-3.6-lonestar.sh	(revision 23626)
@@ -20,6 +20,6 @@
 	--PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
 	--with-blas-lapack-dir="$TACC_MKL_LIB" \
-	--with-mpi-lib="/opt/cray/mpt/default/gni/mpich-intel/14.0/lib/libmpich.so" \
-	--with-mpi-include="/opt/cray/mpt/default/gni/mpich-intel/14.0/include" \
+	--with-mpi-lib="/opt/cray/pe/mpt/7.7.3/gni/mpich-intel/16.0/lib/libmpich.so" \
+	--with-mpi-include="/opt/cray/pe/mpt/7.7.3/gni/mpich-intel/16.0/include" \
 	--known-mpi-shared-libraries=1 \
 	--with-debugging=0 \
@@ -38,9 +38,8 @@
 #!/bin/bash		 
 #SBATCH -J petscinstall # Job Name
-#SBATCH -n 12 # Requests 12 tasks/node, 12 cores total
+#SBATCH -n 24 # Requests 12 tasks/node, 12 cores total
 #SBATCH -N 1 # Requests 12 tasks/node, 12 cores total
 #SBATCH -p normal # Queue name normal
 #SBATCH -t 00:01:00 # Run time (hh:mm:ss) - 1.5 hours
-set -x # Echo commands, use set echo with csh
 
 ibrun -np 1 ./conftest-arch-linux2-c-opt
