Index: /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh	(revision 27540)
+++ /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh	(revision 27541)
@@ -17,5 +17,5 @@
 #
 echo "Finding libgfortran..."
-LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
+LIBGFORTRAN=$(find /usr /opt -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
 LIBGCC=$(find ${LIBGFORTRAN_ROOT} -name libgcc* 2>/dev/null | egrep -n libgcc.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
Index: /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac.sh	(revision 27540)
+++ /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac.sh	(revision 27541)
@@ -15,5 +15,5 @@
 #
 echo "Finding libgfortran..."
-LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
+LIBGFORTRAN=$(find /usr /opt -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
 
Index: sm/trunk-jpl/externalpackages/dakota/install-6.2-macosx64-catalina.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/install-6.2-macosx64-catalina.sh	(revision 27540)
+++ 	(revision )
@@ -1,76 +1,0 @@
-#!/bin/bash
-set -eu
-
-#Some cleanup
-rm -rf Dakota
-rm -rf src 
-rm -rf build 
-rm -rf install 
-mkdir src build install 
-
-#Download from ISSM server
-#$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/dakota-6.2-public.src.tar.gz' 'dakota-6.2-public-src.tar.gz'
-
-#Untar 
-tar -zxvf dakota-6.2-public-src.tar.gz
-
-#Move Dakota to src directory
-mv dakota-6.2.0.src/* src
-rm -rf dakota-6.2.0.src
-
-#GSL: 
-export GSL_HOME=$HOME/externalpackages/gsl/install
-
-#Set up Dakota cmake variables and config
-export DAK_SRC=$HOME/externalpackages/dakota/src
-export DAK_BUILD=$HOME/externalpackages/dakota/build
-export MPIHOME=$HOME/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.mac.patch
-patch $DAK_SRC/cmake/DakotaDev.cmake configs/6.2/DakotaDev.cmake.patch
-patch $DAK_SRC/CMakeLists.txt configs/6.2/CMakeLists.txt.patch
-
-#Apply patches
-patch src/src/NonDSampling.cpp configs/6.2/NonDSampling.cpp.patch
-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/VPISparseGrid/src/sandia_rules.cpp configs/6.2/sandia_rules.cpp.patch
-
-export BOOST_ROOT=$HOME/externalpackages/boost/install
-
-
-#Configure dakota
-# Set your local gcc compiler here
-cd $DAK_BUILD
-cmake -DBoost_NO_BOOST_CMAKE=TRUE \
-	-DBoost_NO_SYSTEM_PATHS=TRUE \
-	-DBOOST_ROOT:PATHNAME=$BOOST_ROOT \
-	-DBoost_LIBRARY_DIRS:FILEPATH=${BOOST_ROOT}/lib \
-	-D CMAKE_C_COMPILER=$HOME/externalpackages/mpich/install/bin/mpicc \
-	-D CMAKE_CXX_COMPILER=$HOME/externalpackages/mpich/install/bin/mpicxx \
-	-D CMAKE_Fortran_COMPILER=$HOME/externalpackages/mpich/install/bin/mpif77 \
-	-D CMAKE_CXX_FLAGS=-fdelayed-template-parsing \
-	-DHAVE_ACRO=off \
-	-DHAVE_JEGA=off \
-	-DDAKOTA_HAVE_GSL=on \
-	-DHAVE_QUESO=on \
-	-C $DAK_SRC/cmake/BuildDakotaCustom.cmake \
-	-C $DAK_SRC/cmake/DakotaDev.cmake \
-	$DAK_SRC
-cd ..
-
-# Snowleopard: Mpi should be made with these compilers
-#-DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCMAKE_CC_COMPILER=/usr/bin/gcc \
-#-DCMAKE_Fortran_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-gfortran \
-
-#Compile and install dakota
-cd $DAK_BUILD
-if [ $# -eq 0 ];
-then
-	make
-	make install
-else
-	make -j $1
-	make -j $1 install
-fi
-cd ..
Index: sm/trunk-jpl/externalpackages/dakota/install-6.2-macosx64-highsierra.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/install-6.2-macosx64-highsierra.sh	(revision 27540)
+++ 	(revision )
@@ -1,70 +1,0 @@
-#!/bin/bash
-set -eu
-
-#Some cleanup
-rm -rf Dakota
-rm -rf src 
-rm -rf build 
-rm -rf install 
-mkdir src build install 
-
-#Download from ISSM server
-$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/dakota-6.2-public.src.tar.gz' 'dakota-6.2-public-src.tar.gz'
-
-#Untar 
-tar -zxvf dakota-6.2-public-src.tar.gz
-
-#Move Dakota to src directory
-mv dakota-6.2.0.src/* src
-rm -rf dakota-6.2.0.src
-
-#Set up Dakota cmake variables and config
-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.mac.patch
-patch $DAK_SRC/cmake/DakotaDev.cmake configs/6.2/DakotaDev.cmake.patch
-patch $DAK_SRC/CMakeLists.txt configs/6.2/CMakeLists.txt.patch
-
-#Apply patches
-patch src/src/NonDSampling.cpp configs/6.2/NonDSampling.cpp.patch
-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/VPISparseGrid/src/sandia_rules.cpp configs/6.2/sandia_rules.cpp.patch
-
-export BOOST_ROOT=$ISSM_DIR/externalpackages/boost/install
-
-#Configure dakota
-# Set your local gcc compiler here
-cd $DAK_BUILD
-cmake -DBoost_NO_BOOST_CMAKE=TRUE \
-	-DBoost_NO_SYSTEM_PATHS=TRUE \
-	-DBOOST_ROOT:PATHNAME=$BOOST_ROOT \
-	-DBoost_LIBRARY_DIRS:FILEPATH=${BOOST_ROOT}/lib \
-	-D CMAKE_C_COMPILER=$ISSM_DIR/externalpackages/mpich/install/bin/mpicc \
-	-D CMAKE_CXX_COMPILER=$ISSM_DIR/externalpackages/mpich/install/bin/mpicxx \
-	-D CMAKE_Fortran_COMPILER=$ISSM_DIR/externalpackages/mpich/install/bin/mpif77 \
-	-D CMAKE_CXX_FLAGS=-fdelayed-template-parsing \
-	-DHAVE_ACRO=off \
-	-DHAVE_JEGA=off \
-	-C $DAK_SRC/cmake/BuildDakotaCustom.cmake \
-	-C $DAK_SRC/cmake/DakotaDev.cmake \
-	$DAK_SRC
-cd ..
-
-# Snowleopard: Mpi should be made with these compilers
-#-DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCMAKE_CC_COMPILER=/usr/bin/gcc \
-#-DCMAKE_Fortran_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-gfortran \
-
-#Compile and install dakota
-cd $DAK_BUILD
-if [ $# -eq 0 ];
-then
-	make
-	make install
-else
-	make -j $1
-	make -j $1 install
-fi
-cd ..
Index: sm/trunk-jpl/externalpackages/dakota/install-6.2-macosx64-snowleopard.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/install-6.2-macosx64-snowleopard.sh	(revision 27540)
+++ 	(revision )
@@ -1,69 +1,0 @@
-#!/bin/bash
-set -eu
-
-#Some cleanup
-rm -rf Dakota
-rm -rf src 
-rm -rf build 
-rm -rf install 
-mkdir src build install 
-
-#Download from ISSM server
-$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/dakota-6.2-public.src.tar.gz' 'dakota-6.2-public-src.tar.gz'
-
-#Untar 
-tar -zxvf dakota-6.2-public-src.tar.gz
-
-#Move Dakota to src directory
-mv dakota-6.2.0.src/* src
-rm -rf dakota-6.2.0.src
-
-#Set up Dakota cmake variables and config
-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.mac.patch
-patch $DAK_SRC/cmake/DakotaDev.cmake configs/6.2/DakotaDev.cmake.patch
-patch $DAK_SRC/CMakeLists.txt configs/6.2/CMakeLists.txt.patch
-
-#Apply patches
-patch src/src/NonDSampling.cpp configs/6.2/NonDSampling.cpp.patch
-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
-
-export BOOST_ROOT=$ISSM_DIR/externalpackages/boost/install
-
-#Configure dakota
-# Set your local gcc compiler here
-cd $DAK_BUILD
-cmake -DBoost_NO_BOOST_CMAKE=TRUE \
-	-DBoost_NO_SYSTEM_PATHS=TRUE \
-	-DBOOST_ROOT:PATHNAME=$BOOST_ROOT \
-	-DBoost_LIBRARY_DIRS:FILEPATH=${BOOST_ROOT}/lib \
-	-D CMAKE_C_COMPILER=$ISSM_DIR/externalpackages/mpich/install/bin/mpicc \
-	-D CMAKE_CXX_COMPILER=$ISSM_DIR/externalpackages/mpich/install/bin/mpicxx \
-	-D CMAKE_Fortran_COMPILER=$ISSM_DIR/externalpackages/mpich/install/bin/mpif77 \
-	-DHAVE_ACRO=off \
-	-DHAVE_JEGA=off \
-	-D LDFLAGS="-L/usr/lib/ -lstdc++ -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin10/4.6.2/ -lgfortran" \
-	-C $DAK_SRC/cmake/BuildDakotaCustom.cmake \
-	-C $DAK_SRC/cmake/DakotaDev.cmake \
-	$DAK_SRC
-cd ..
-
-# Snowleopard: Mpi should be made with these compilers
-#-DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCMAKE_CC_COMPILER=/usr/bin/gcc \
-#-DCMAKE_Fortran_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-gfortran \
-
-#Compile and install dakota
-cd $DAK_BUILD
-if [ $# -eq 0 ];
-then
-	make
-	make install
-else
-	make -j $1
-	make -j $1 install
-fi
-cd ..
Index: sm/trunk-jpl/externalpackages/dakota/install-6.2-macosx64-yosemite.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/install-6.2-macosx64-yosemite.sh	(revision 27540)
+++ 	(revision )
@@ -1,63 +1,0 @@
-#!/bin/bash
-set -eu
-
-#Some cleanup
-rm -rf Dakota
-rm -rf src 
-rm -rf build 
-rm -rf install 
-mkdir src build install 
-
-#Download from ISSM server
-$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/dakota-6.2-public.src.tar.gz' 'dakota-6.2-public-src.tar.gz'
-
-#Untar 
-tar -zxvf dakota-6.2-public-src.tar.gz
-
-#Move Dakota to src directory
-mv dakota-6.2.0.src/* src
-rm -rf dakota-6.2.0.src
-
-#Set up Dakota cmake variables and config
-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.yosemite.patch
-patch $DAK_SRC/cmake/DakotaDev.cmake configs/6.2/DakotaDev.cmake.patch
-patch $DAK_SRC/CMakeLists.txt configs/6.2/CMakeLists.txt.patch
-
-#Apply patches
-patch src/src/NonDSampling.cpp configs/6.2/NonDSampling.cpp.patch
-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
-
-#Configure dakota
-cd $DAK_BUILD
-
-cmake -D CMAKE_C_COMPILER=$ISSM_DIR/externalpackages/mpich/install/bin/mpicc \
-	   -D CMAKE_CXX_COMPILER=$ISSM_DIR/externalpackages/mpich/install/bin/mpicxx \
-	   -D CMAKE_Fortran_COMPILER=$ISSM_DIR/externalpackages/mpich/install/bin/mpif77 \
-		-DHAVE_ACRO=off \
-		-DHAVE_JEGA=off \
-		-DBLAS_LIBS=$ISSM_DIR/externalpackages/petsc/install/lib/libfblas.a \
-		-DLAPACK_LIBS=$ISSM_DIR/externalpackages/petsc/install/lib/libflapack.a \
-		-C $DAK_SRC/cmake/BuildDakotaCustom.cmake \
-		-C $DAK_SRC/cmake/DakotaDev.cmake \
-		$DAK_SRC
-cd ..
-
-#Make sure to include --download-fblaslapack=1 \ in petsc configure script to use the petsc blas and dlapack libs
-#-DBLAS_LIBS=$ISSM_DIR/externalpackages/petsc/install/lib/libfblas.a -DLAPACK_LIBS=$ISSM_DIR/externalpackages/petsc/install/lib/libflapack.a
-
-#Compile and install dakota
-cd $DAK_BUILD
-if [ $# -eq 0 ];
-then
-	make
-	make install
-else
-	make -j $1
-	make -j $1 install
-fi
-cd ..
Index: /issm/trunk-jpl/externalpackages/gdal/install-3-python-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gdal/install-3-python-static.sh	(revision 27540)
+++ /issm/trunk-jpl/externalpackages/gdal/install-3-python-static.sh	(revision 27541)
@@ -9,9 +9,10 @@
 ## Constants
 #
-VER="3.1.1"
+VER="3.5.3"
 
 ## Environment
 #
 export CC=mpicc
+export CXXFLAGS="-std=c++11"
 export CXX=mpicxx
 export LDFLAGS="-L${HDF5_ROOT}/lib" # Need to do this so HDF5 symbols referenced in NETCDF library are found at link time
@@ -42,5 +43,5 @@
 	--enable-static \
 	--with-pic \
-	--with-python \
+	--with-python="python3" \
 	--with-curl="${CURL_ROOT}/bin/curl-config" \
 	--with-hdf5="${HDF5_ROOT}" \
Index: /issm/trunk-jpl/externalpackages/gdal/install-3-python.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gdal/install-3-python.sh	(revision 27540)
+++ /issm/trunk-jpl/externalpackages/gdal/install-3-python.sh	(revision 27541)
@@ -9,5 +9,5 @@
 ## Constants
 #
-VER="3.1.1"
+VER="3.5.3"
 
 ## Environment
@@ -34,5 +34,5 @@
 	--prefix="${PREFIX}" \
 	--enable-fast-install \
-	--with-python \
+	--with-python="python3" \
 	--with-hdf5="${HDF5_ROOT}" \
 	--with-libz="${ZLIB_ROOT}" \
Index: /issm/trunk-jpl/externalpackages/gdal/install-3-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gdal/install-3-static.sh	(revision 27540)
+++ /issm/trunk-jpl/externalpackages/gdal/install-3-static.sh	(revision 27541)
@@ -9,9 +9,10 @@
 ## Constants
 #
-VER="3.1.1"
+VER="3.5.3"
 
 ## Environment
 #
 export CC=mpicc
+export CXXFLAGS="-std=c++11"
 export CXX=mpicxx
 export LDFLAGS="-L${HDF5_ROOT}/lib" # Need to do this so HDF5 symbols referenced in NETCDF library are found at link time
@@ -32,4 +33,7 @@
 mv gdal-${VER}/* src
 rm -rf gdal-${VER}
+
+# Apply patches to source
+patch src/frmts/vrt/pixelfunctions.cpp < configs/3/frmts/vrt/pixelfunctions.cpp.patch
 
 # Configure
Index: /issm/trunk-jpl/externalpackages/gdal/install-3.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gdal/install-3.sh	(revision 27540)
+++ /issm/trunk-jpl/externalpackages/gdal/install-3.sh	(revision 27541)
@@ -5,5 +5,5 @@
 ## Constants
 #
-VER="3.5.1"
+VER="3.5.3"
 
 ## Environment
Index: /issm/trunk-jpl/externalpackages/gmsh/install-4-mac-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmsh/install-4-mac-static.sh	(revision 27540)
+++ /issm/trunk-jpl/externalpackages/gmsh/install-4-mac-static.sh	(revision 27541)
@@ -33,5 +33,5 @@
 #
 echo "Finding libgfortran..."
-LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
+LIBGFORTRAN=$(find /usr /opt -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
 LIBGCC=$(find ${LIBGFORTRAN_ROOT} -name libgcc* 2>/dev/null | egrep -n libgcc.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
Index: /issm/trunk-jpl/externalpackages/gmsh/install-4-mac.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmsh/install-4-mac.sh	(revision 27540)
+++ /issm/trunk-jpl/externalpackages/gmsh/install-4-mac.sh	(revision 27541)
@@ -25,5 +25,5 @@
 #
 echo "Finding libgfortran..."
-LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
+LIBGFORTRAN=$(find /usr /opt -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
 
Index: /issm/trunk-jpl/externalpackages/gmt/install-6-linux-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/install-6-linux-static.sh	(revision 27540)
+++ /issm/trunk-jpl/externalpackages/gmt/install-6-linux-static.sh	(revision 27541)
@@ -5,5 +5,5 @@
 ## Constants
 #
-VER="6.0.0"
+VER="6.4.0"
 
 # Find libgfortran and libgcc so we do not have to hardcode them
Index: /issm/trunk-jpl/externalpackages/gmt/install-6-mac-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/install-6-mac-static.sh	(revision 27540)
+++ /issm/trunk-jpl/externalpackages/gmt/install-6-mac-static.sh	(revision 27541)
@@ -5,5 +5,5 @@
 ## Constants
 #
-VER="6.0.0"
+VER="6.4.0"
 
 # Find libgfortran and libgcc so we do not have to hardcode them
@@ -15,5 +15,5 @@
 #
 echo "Finding libgfortran..."
-LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
+LIBGFORTRAN=$(find /usr /opt -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
 LIBGCC=$(find ${LIBGFORTRAN_ROOT} -name libgcc* 2>/dev/null | egrep -n libgcc.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
Index: /issm/trunk-jpl/externalpackages/gmt/install-6-mac.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/install-6-mac.sh	(revision 27540)
+++ /issm/trunk-jpl/externalpackages/gmt/install-6-mac.sh	(revision 27541)
@@ -13,5 +13,5 @@
 #
 echo "Finding libgfortran..."
-LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
+LIBGFORTRAN=$(find /usr /opt -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
 
Index: /issm/trunk-jpl/jenkins/mac-intel-basic
===================================================================
--- /issm/trunk-jpl/jenkins/mac-intel-basic	(revision 27541)
+++ /issm/trunk-jpl/jenkins/mac-intel-basic	(revision 27541)
@@ -0,0 +1,73 @@
+#--------------------#
+# ISSM Configuration #
+#--------------------#
+
+MATLAB_PATH="/Applications/MATLAB_R2022b.app"
+
+ISSM_CONFIG='\
+	--prefix=${ISSM_DIR} \
+	--disable-static \
+	--enable-development \
+	--enable-debugging \
+	--with-numthreads=4 \
+	--with-matlab-dir=${MATLAB_PATH} \
+	--with-fortran-lib="-L/usr/local/Cellar/gcc/11.3.0/lib/gcc/11 -lgfortran" \
+	--with-mpi-include=${ISSM_DIR}/externalpackages/petsc/install/include \
+	--with-mpi-libflags="-L${ISSM_DIR}/externalpackages/petsc/install/lib -lmpi -lmpicxx -lmpifort" \
+	--with-blas-lapack-dir=${ISSM_DIR}/externalpackages/petsc/install \
+	--with-metis-dir=${ISSM_DIR}/externalpackages/petsc/install \
+	--with-parmetis-dir=${ISSM_DIR}/externalpackages/petsc/install \
+	--with-scalapack-dir=${ISSM_DIR}/externalpackages/petsc/install \
+	--with-mumps-dir=${ISSM_DIR}/externalpackages/petsc/install \
+	--with-petsc-dir=${ISSM_DIR}/externalpackages/petsc/install \
+	--with-triangle-dir=${ISSM_DIR}/externalpackages/triangle/install \
+	--with-chaco-dir=${ISSM_DIR}/externalpackages/chaco/install \
+	--with-m1qn3-dir=${ISSM_DIR}/externalpackages/m1qn3/install \
+	--with-semic-dir=${ISSM_DIR}/externalpackages/semic/install \
+'
+
+#-------------------#
+# External Packages #
+#-------------------#
+
+# List of external pakages to be installed and their installation scripts
+EXTERNALPACKAGES="
+	autotools	install-mac.sh
+	cmake		install.sh
+	petsc		install-3.17-mac-intel.sh
+	triangle	install-mac.sh
+	chaco		install-mac.sh
+	m1qn3		install.sh
+	semic		install.sh
+	shell2junit	install.sh
+"
+
+#---------#
+# Testing #
+#---------#
+
+# Test suites
+MATLAB_TEST=1
+PYTHON_TEST=0
+JAVASCRIPT_TEST=0
+EXAMPLES_TEST=0
+
+# Number of CPUs used in ISSM compilation
+#
+# NOTE: 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=2
+
+# Nightly run options
+#
+# See documentation in test/NightlyRun/runme.* for more information
+#
+# NOTE:
+# - test701 is skipped because it uses full Stokes equations
+#
+MATLAB_NROPTIONS="'exclude',[IdFromString('Dakota'),435,701,702,703]"
+PYTHON_NROPTIONS=""
