Index: /issm/trunk-jpl/externalpackages/dakota/configs/6.2/BuildDakotaCustom.cmake.pfe.patch
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/configs/6.2/BuildDakotaCustom.cmake.pfe.patch	(revision 25875)
+++ /issm/trunk-jpl/externalpackages/dakota/configs/6.2/BuildDakotaCustom.cmake.pfe.patch	(revision 25876)
@@ -16,5 +16,5 @@
 ---
 > set(BOOST_ROOT
->     "/nasa/boost/1.50.0"
+>     "/nasa/pkgsrc/sles12/2018Q3/" 
 >     CACHE PATH "Use non-standard Boost install" FORCE)
 > set( Boost_NO_SYSTEM_PATHS TRUE
Index: /issm/trunk-jpl/externalpackages/dakota/configs/6.2/CMakeLists.txt.pfe.patch
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/configs/6.2/CMakeLists.txt.pfe.patch	(revision 25875)
+++ /issm/trunk-jpl/externalpackages/dakota/configs/6.2/CMakeLists.txt.pfe.patch	(revision 25876)
@@ -3,4 +3,4 @@
 ---
 > # TODO: Can't this be integrated into the following logic?
-> set(BLAS_LIBS "-L/nasa/intel/Compiler/2016.2.181/compilers_and_libraries_2016.2.181/linux/mkl/lib/intel64/ -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -L/usr/lib64/ -lpthread -lm")
-> set(LAPACK_LIBS "-L/nasa/intel/Compiler/2016.2.181/compilers_and_libraries_2016.2.181/linux/mkl/lib/intel64/ -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -L/usr/lib64/ -lpthread -lm")
+> set(BLAS_LIBS "-L/nasa/intel/Compiler/2016.2.181/compilers_and_libraries_2016.2.181/linux/mkl/lib/intel64/ -lmkl_intel_lp64 -lmkl_sequential -lmkl_core")
+> set(LAPACK_LIBS "-L/nasa/intel/Compiler/2016.2.181/compilers_and_libraries_2016.2.181/linux/mkl/lib/intel64/ -lmkl_intel_lp64 -lmkl_sequential -lmkl_core")
Index: /issm/trunk-jpl/externalpackages/dakota/install-6.2-pleiades.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/install-6.2-pleiades.sh	(revision 25875)
+++ /issm/trunk-jpl/externalpackages/dakota/install-6.2-pleiades.sh	(revision 25876)
@@ -22,7 +22,6 @@
 export DAK_SRC=$ISSM_DIR/externalpackages/dakota/src
 export DAK_BUILD=$ISSM_DIR/externalpackages/dakota/build
-export MPIHOME=$ISSM_DIR/externalpackages/mpich/install
 cp $DAK_SRC/cmake/BuildDakotaTemplate.cmake $DAK_SRC/cmake/BuildDakotaCustom.cmake
-patch $DAK_SRC/cmake/BuildDakotaCustom.cmake configs/6.2/BuildDakotaCustom.cmake.patch
+patch $DAK_SRC/cmake/BuildDakotaCustom.cmake configs/6.2/BuildDakotaCustom.cmake.pfe.patch
 patch $DAK_SRC/cmake/DakotaDev.cmake configs/6.2/DakotaDev.cmake.patch
 patch $DAK_SRC/CMakeLists.txt configs/6.2/CMakeLists.txt.pfe.patch
@@ -36,12 +35,19 @@
 cd $DAK_BUILD
 
-cmake -D CMAKE_C_COMPILER=mpicc \
-	   -D CMAKE_CXX_COMPILER=mpicxx \
-	   -D CMAKE_Fortran_COMPILER=/usr/bin/gfortran \
-		-DHAVE_ACRO=off \
-		-DHAVE_JEGA=off \
-		-C $DAK_SRC/cmake/BuildDakotaCustom.cmake \
-		-C $DAK_SRC/cmake/DakotaDev.cmake \
-		$DAK_SRC
+cmake \
+	-DBUILD_SHARED_LIBS=OFF \
+	-DBUILD_STATIC_LIBS=ON \
+	-DCMAKE_C_COMPILER=mpicc \
+	-DCMAKE_CXX_COMPILER=mpicxx \
+	-DCMAKE_Fortran_COMPILER=mpif77 \
+	-DBoost_NO_BOOST_CMAKE=TRUE \
+	-DHAVE_ACRO=OFF \
+	-DHAVE_JEGA=OFF \
+	-DHAVE_QUESO=ON \
+	-DDAKOTA_HAVE_GSL=ON \
+	-C${DAK_SRC}/cmake/BuildDakotaCustom.cmake \
+	-C${DAK_SRC}/cmake/DakotaDev.cmake \
+	${DAK_SRC}
+
 cd ..
 
Index: /issm/trunk-jpl/externalpackages/triangle/install-pleiades.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/triangle/install-pleiades.sh	(revision 25875)
+++ /issm/trunk-jpl/externalpackages/triangle/install-pleiades.sh	(revision 25876)
@@ -2,23 +2,33 @@
 set -eu
 
-#Some cleanup 
-rm -rf install triangle
-mkdir install
 
-#Download from ISSM server
-$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/triangle.zip' 'triangle.zip'
+# Constants
+#
+INSTALL_DIR="install"
 
-#Untar 
-cd install
-cp ../triangle.zip ./
-unzip triangle.zip
+# Cleanup
+rm -rf ${INSTALL_DIR} src
+mkdir ${INSTALL_DIR} ${INSTALL_DIR}/include ${INSTALL_DIR}/lib src
 
-#copy new makefile
-cp ../configs/pleiades/configure.make ./
-cp ../makefile ./
+# Download source
+$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/triangle.zip" "triangle.zip"
 
-#Compile triangle
-make
+# Unpack source
+unzip triangle.zip -d src
 
-#Patch triangle.h
-patch triangle.h ../triangle.h.patch
+# Copy customized source files to 'src' directory
+cp configs/makefile src
+cp configs/triangle.h src
+cp configs/linux/configure.make src
+
+# Compile
+cd src
+make shared
+
+# Install
+cd ..
+cp src/libtriangle.* ${INSTALL_DIR}/lib
+cp src/triangle.h ${INSTALL_DIR}/include
+
+# Cleanup
+rm -rf src
Index: /issm/trunk-jpl/m4/issm_options.m4
===================================================================
--- /issm/trunk-jpl/m4/issm_options.m4	(revision 25875)
+++ /issm/trunk-jpl/m4/issm_options.m4	(revision 25876)
@@ -309,4 +309,9 @@
 			export CXXFLAGS="-O3 -march=corei7-avx -std=c++11"
 			export CFLAGS="-O3 -march=corei7-avx"
+		elif test "${VENDOR}" == "intel-pleiades-mpi"; then
+			export CC=mpicc
+			export CXX=mpicxx
+			export CXXFLAGS="-O3 -march=corei7-avx -std=c++11"
+			export CFLAGS="-O3 -march=corei7-avx"
 		elif test "${VENDOR}" == "intel-pleiades-icpc"; then
 			export CXXFLAGS="-g -O3 -ipo -axAVX -ipo -no-inline-min-size -inline-max-size=345 -no-inline-max-total-size -no-inline-max-per-routine -no-inline-max-per-compile -restrict -std=c++11"
