Index: /issm/trunk-jpl/externalpackages/gmsh/install-4-linux-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmsh/install-4-linux-static.sh	(revision 27552)
+++ /issm/trunk-jpl/externalpackages/gmsh/install-4-linux-static.sh	(revision 27553)
@@ -58,4 +58,5 @@
 cmake \
 	-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
+	-DCMAKE_SKIP_RPATH=TRUE \
 	-DENABLE_BUILD_LIB=1 \
 	-DBLAS_LAPACK_LIBRARIES="-L${LAPACK_ROOT}/lib -lflapack -L${BLAS_ROOT}/lib -lfblas ${LIBGFORTRAN_ROOT}/libgfortran.a ${LIBGFORTRAN_ROOT}/libquadmath.a ${LIBGCC}" \
Index: /issm/trunk-jpl/externalpackages/gmsh/install-4-linux.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmsh/install-4-linux.sh	(revision 27552)
+++ /issm/trunk-jpl/externalpackages/gmsh/install-4-linux.sh	(revision 27553)
@@ -57,4 +57,5 @@
 cmake \
 	-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
+	-DCMAKE_SKIP_RPATH=TRUE \
 	-DENABLE_BUILD_DYNAMIC=1 \
 	-DENABLE_BUILD_SHARED=1 \
Index: /issm/trunk-jpl/externalpackages/gmsh/install-4-mac-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmsh/install-4-mac-static.sh	(revision 27552)
+++ /issm/trunk-jpl/externalpackages/gmsh/install-4-mac-static.sh	(revision 27553)
@@ -69,4 +69,5 @@
 cmake \
 	-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
+	-DCMAKE_SKIP_RPATH=TRUE \
 	-DENABLE_BUILD_LIB=1 \
 	-DBLAS_LAPACK_LIBRARIES="-L${LAPACK_ROOT}/lib -lflapack -L${BLAS_ROOT}/lib -lfblas ${LIBGFORTRAN_ROOT}/libgfortran.a ${LIBGFORTRAN_ROOT}/libquadmath.a ${LIBGCC}" \
Index: /issm/trunk-jpl/externalpackages/gmsh/install-4-mac.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmsh/install-4-mac.sh	(revision 27552)
+++ /issm/trunk-jpl/externalpackages/gmsh/install-4-mac.sh	(revision 27553)
@@ -57,4 +57,5 @@
 cmake \
 	-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
+	-DCMAKE_SKIP_RPATH=TRUE \
 	-DENABLE_BUILD_DYNAMIC=1 \
 	-DENABLE_BUILD_SHARED=1 \
Index: sm/trunk-jpl/externalpackages/petsc/install-3.12-linux-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.12-linux-static.sh	(revision 27552)
+++ 	(revision )
@@ -1,65 +1,0 @@
-#!/bin/bash
-set -eu
-
-
-## Constants
-#
-VER="3.12.3"
-
-PETSC_DIR=${ISSM_DIR}/externalpackages/petsc/src # DO NOT CHANGE THIS
-PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
-
-# Download source
-$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
-
-# Unpack source
-tar -zxvf petsc-${VER}.tar.gz
-
-# Cleanup
-rm -rf ${PREFIX} ${PETSC_DIR}
-mkdir -p ${PETSC_DIR}
-
-# Move source to $PETSC_DIR
-mv petsc-${VER}/* ${PETSC_DIR}
-rm -rf petsc-${VER}
-
-# Configure
-#
-# NOTE:
-# - Cannot use --with-fpic option when compiling static libs,
-#
-#		Cannot determine compiler PIC flags if shared libraries is turned off
-#		Either run using --with-shared-libraries or --with-pic=0 and supply the
-#		compiler PIC flag via CFLAGS, CXXXFLAGS, and FCFLAGS
-#
-# - Added -fallow-argument-mismatch to FFLAGS in order to clear,
-#
-#		error: The Fortran compiler gfortran will not compile files that call 
-#		the same routine with arguments of different types.
-#
-#	for gfortran 10 or later (may need to remove it for earlier versions).
-#
-cd ${PETSC_DIR}
-./config/configure.py \
-	--prefix="${PREFIX}" \
-	--PETSC_DIR="${PETSC_DIR}" \
-	--with-shared-libraries=0 \
-	--CFLAGS="-fPIC" \
-	--CXXFLAGS="-fPIC" \
-	--FFLAGS="-fPIC" \
-	--with-debugging=0 \
-	--with-valgrind=0 \
-	--with-x=0 \
-	--with-ssl=0 \
-	--download-fblaslapack=1 \
-	--download-mpich=1 \
-	--download-metis=1 \
-	--download-parmetis=1 \
-	--download-scalapack=1 \
-	--download-mumps=1 \
-	--download-zlib=1 \
-	--download-hdf5=1
-
-# Compile and install
-make
-make install
Index: sm/trunk-jpl/externalpackages/petsc/install-3.12-linux.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.12-linux.sh	(revision 27552)
+++ 	(revision )
@@ -1,47 +1,0 @@
-#!/bin/bash
-set -eu
-
-
-## Constants
-#
-VER="3.12.3"
-
-PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS
-PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
-
-# Download source
-$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
-
-# Unpack source
-tar -zxvf petsc-${VER}.tar.gz
-
-# Cleanup
-rm -rf ${PREFIX} ${PETSC_DIR}
-mkdir -p ${PETSC_DIR}
-
-# Move source to $PETSC_DIR
-mv petsc-${VER}/* ${PETSC_DIR}
-rm -rf petsc-${VER}
-
-# Configure
-cd ${PETSC_DIR}
-./config/configure.py \
-	--prefix="${PREFIX}" \
-	--PETSC_DIR="${PETSC_DIR}" \
-	--with-debugging=0 \
-	--with-valgrind=0 \
-	--with-x=0 \
-	--with-ssl=0 \
-	--with-pic=1 \
-	--download-fblaslapack=1 \
-	--download-mpich=1 \
-	--download-metis=1 \
-	--download-parmetis=1 \
-	--download-scalapack=1 \
-	--download-mumps=1 \
-	--download-zlib=1 \
-	--download-hdf5=1
-
-# Compile and install
-make
-make install
Index: sm/trunk-jpl/externalpackages/petsc/install-3.12-lonestar.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.12-lonestar.sh	(revision 27552)
+++ 	(revision )
@@ -1,49 +1,0 @@
-#!/bin/bash
-set -eu
-
-
-## Constants
-#
-VER="3.12.3"
-
-PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS
-PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
-
-# Download source
-$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
-
-# Unpack source
-tar -zxvf petsc-${VER}.tar.gz
-
-# Cleanup
-rm -rf ${PREFIX} ${PETSC_DIR}
-mkdir -p ${PETSC_DIR}
-
-# Move source to $PETSC_DIR
-mv petsc-${VER}/* ${PETSC_DIR}
-rm -rf petsc-${VER}
-
-# Configure
-cd ${PETSC_DIR}
-./config/configure.py \
-	--prefix="${PREFIX}" \
-	--PETSC_DIR="${PETSC_DIR}" \
-	--with-mpi-dir="/opt/cray/pe/mpt/7.7.3/gni/mpich-intel/16.0/" \
-	--with-blas-lapack-dir="$TACC_MKL_LIB" \
-	--with-scalapack-include="$TACC_MKL_INC" \
-	--with-scalapack-lib="$TACC_MKL_LIB/libmkl_scalapack_lp64.so $TACC_MKL_LIB/libmkl_blacs_intelmpi_lp64.so" \
-	--with-shared-libraries=1 \
-	--known-mpi-shared-libraries=1 \
-	--with-debugging=0 \
-	--with-valgrind=0 \
-	--with-x=0 \
-	--with-ssl=0 \
-	--with-batch  \
-	--download-metis=1 \
-	--download-parmetis=1 \
-	--download-mumps=1 \
-	--download-scalapack=1
-
-# Compile and install
-make
-make install
Index: sm/trunk-jpl/externalpackages/petsc/install-3.12-mac-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.12-mac-static.sh	(revision 27552)
+++ 	(revision )
@@ -1,69 +1,0 @@
-#!/bin/bash
-set -eu
-
-
-## Constants
-#
-VER="3.12.3"
-
-PETSC_DIR=${ISSM_DIR}/externalpackages/petsc/src # DO NOT CHANGE THIS
-PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
-
-# Download source
-$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
-
-# Unpack source
-tar -zxvf petsc-${VER}.tar.gz
-
-# Cleanup
-rm -rf ${PREFIX} ${PETSC_DIR}
-mkdir -p ${PETSC_DIR}
-
-# Move source to $PETSC_DIR
-mv petsc-${VER}/* ${PETSC_DIR}
-rm -rf petsc-${VER}
-
-# Configure
-#
-# NOTE:
-# - Cannot use --with-fpic option when compiling static libs,
-#
-#		Cannot determine compiler PIC flags if shared libraries is turned off
-#		Either run using --with-shared-libraries or --with-pic=0 and supply the
-#		compiler PIC flag via CFLAGS, CXXXFLAGS, and FCFLAGS
-#
-# - Added -Wno-error=implicit-function-declaration to CFLAGS for Clang >= 12. 
-#	(may need to remove it for earlier versions not using the C99 standard).
-# - Added -fallow-argument-mismatch to FFLAGS in order to clear,
-#
-#		error: The Fortran compiler gfortran will not compile files that call 
-#		the same routine with arguments of different types.
-#
-#	for gfortran 10 or later (may need to remove it for earlier versions).
-# - Added -static-libgfortran to all macOS static builds, but this will not 
-#	work out of the box on Linux.
-#
-cd ${PETSC_DIR}
-./config/configure.py \
-	--prefix="${PREFIX}" \
-	--PETSC_DIR="${PETSC_DIR}" \
-	--with-shared-libraries=0 \
-	--CFLAGS="-fPIC -Wno-error=implicit-function-declaration" \
-	--CXXFLAGS="-fPIC" \
-	--FFLAGS="-fPIC -fallow-argument-mismatch -static-libgfortran" \
-	--with-debugging=0 \
-	--with-valgrind=0 \
-	--with-x=0 \
-	--with-ssl=0 \
-	--download-fblaslapack=1 \
-	--download-mpich=1 \
-	--download-metis=1 \
-	--download-parmetis=1 \
-	--download-scalapack=1 \
-	--download-mumps=1 \
-	--download-zlib=1 \
-	--download-hdf5=1
-
-# Compile and install
-make
-make install
Index: sm/trunk-jpl/externalpackages/petsc/install-3.12-mac.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.12-mac.sh	(revision 27552)
+++ 	(revision )
@@ -1,66 +1,0 @@
-#!/bin/bash
-set -eu
-
-
-## Constants
-#
-VER="3.12.3"
-
-PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS
-PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
-
-# Download source
-$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
-
-# Unpack source
-tar -zxvf petsc-${VER}.tar.gz
-
-# Cleanup
-rm -rf ${PREFIX} ${PETSC_DIR}
-mkdir -p ${PETSC_DIR}
-
-# Move source to $PETSC_DIR
-mv petsc-${VER}/* ${PETSC_DIR}
-rm -rf petsc-${VER}
-
-# Modify source so that Python 3 can be used to compile PETSc
-sed -i '' 's|#!/usr/bin/env python|#!/usr/bin/env python3|g' ${PETSC_DIR}/config/configure.py
-
-# Modify source so that Python >= 3.9 can be used to compile PETSc
-sed -i '' 's|thread.isAlive|thread.is_alive|g' ${PETSC_DIR}/config/BuildSystem/script.py
-
-# Configure
-#
-# NOTE:
-# - Added -Wno-error=implicit-function-declaration to CFLAGS for Clang >= 12. 
-#	(may need to remove it for earlier versions not using the C99 standard).
-# - Added -fallow-argument-mismatch to FFLAGS in order to clear,
-#
-#		error: The Fortran compiler gfortran will not compile files that call 
-#		the same routine with arguments of different types.
-#
-#	for gfortran 10 or later (may need to remove it for earlier versions).
-#
-cd ${PETSC_DIR}
-./config/configure.py \
-	--prefix="${PREFIX}" \
-	--PETSC_DIR="${PETSC_DIR}" \
-	--CFLAGS="-Wno-error=implicit-function-declaration" \
-	--FFLAGS="-fallow-argument-mismatch" \
-	--with-debugging=0 \
-	--with-valgrind=0 \
-	--with-x=0 \
-	--with-ssl=0 \
-	--with-pic=1 \
-	--download-fblaslapack=1 \
-	--download-mpich=1 \
-	--download-metis=1 \
-	--download-parmetis=1 \
-	--download-scalapack=1 \
-	--download-mumps=1 \
-	--download-zlib=1 \
-	--download-hdf5=1
-
-# Compile and install
-make
-make install
Index: sm/trunk-jpl/externalpackages/petsc/install-3.12-win-msys2-gcc-msmpi.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.12-win-msys2-gcc-msmpi.sh	(revision 27552)
+++ 	(revision )
@@ -1,65 +1,0 @@
-#!/bin/bash
-set -u # NOTE: Do not set -e as it will cause this script to fail when there are errors in underlying Python scripts
-
-
-## Constants
-#
-VER="3.12.3"
-
-PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS
-PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
-
-# Download source
-$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
-
-# Unpack source
-tar -zxvf petsc-${VER}.tar.gz
-
-# Cleanup
-rm -rf ${PREFIX} ${PETSC_DIR}
-mkdir -p ${PETSC_DIR}
-
-# Move source to $PETSC_DIR
-mv petsc-${VER}/* ${PETSC_DIR}
-rm -rf petsc-${VER}
-
-# Configure
-#
-# - Added -fallow-argument-mismatch option to FFLAGS in order to clear "Error: 
-#	Rank mismatch between actual argument at [...]"
-# - Added -fallow-invalid-boz option to FFLAGS in order to clear "Error: BOZ 
-#	literal constant at [...]"
-#
-cd ${PETSC_DIR}
-./config/configure.py \
-	--prefix="${PREFIX}" \
-	--PETSC_DIR="${PETSC_DIR}" \
-	--FFLAGS="-fallow-argument-mismatch -fallow-invalid-boz" \
-	--with-debugging=0 \
-	--with-valgrind=0 \
-	--with-x=0 \
-	--with-ssl=0 \
-	--with-pic=1 \
-	--with-mpiexec="/c/PROGRA~1/MICROS~1/Bin/mpiexec.exe" \
-	--with-mpi-lib="-L${MSMPI_ROOT}/lib -lmsmpi" \
-	--with-mpi-include="${MSMPI_ROOT}/include" \
-	--with-metis-dir=${METIS_ROOT} \
-	--with-parmetis-dir=${PARMETIS_ROOT} \
-	--with-blas-lib="-L${BLAS_ROOT}/lib -lblas" \
-	--known-64-bit-blas-indices=0 \
-	--with-lapack-lib="-L${LAPACK_ROOT}/lib -llapack" \
-	--with-scalapack-dir=${SCALAPACK_ROOT} \
-	--with-mumps-dir=${MUMPS_ROOT}
-
-# Compile and install
-make
-make install
-
-# NOTE:
-# - Hack to recover from failed installation (appears to happen only on Windows 
-#	when reproducing symbolic links in destination directory) rather than 
-#	trying to patch src/config/install.py
-#
-if [ $? -ne 0 ]; then
-	make install
-fi
Index: sm/trunk-jpl/externalpackages/petsc/install-3.13-pleiades.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.13-pleiades.sh	(revision 27552)
+++ 	(revision )
@@ -1,63 +1,0 @@
-#!/bin/bash
-set -eu
-
-
-## Constants
-#
-VER="3.13.6"
-
-PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS
-PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
-
-# Download source
-echo "OK1 ($ISSM_DIR)"
-$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
-echo OK2
-
-# Unpack source
-tar -zxvf petsc-${VER}.tar.gz
-
-# Cleanup
-rm -rf ${PREFIX} ${PETSC_DIR}
-mkdir -p ${PETSC_DIR}
-
-# Move source to $PETSC_DIR
-mv petsc-${VER}/* ${PETSC_DIR}
-rm -rf petsc-${VER}
-
-
-# Configure
-#
-# NOTE: Based on /nasa/petsc/3.7.5/intel_mpt/lib/petsc/conf/petscvariables; look for CONFIGURE_OPTIONS
-#
-cd ${PETSC_DIR}
-./config/configure.py \
-	--prefix="${PREFIX}" \
-	--PETSC_DIR="${PETSC_DIR}" \
-	--with-cc=icc \
-	--with-cpp=/usr/bin/cpp \
-	--with-cxx=icpc \
-	--with-fc=ifort \
-	-COPTFLAGS="-g -O3 -axCORE-AVX2,AVX -xSSE4.2" \
-	-CXXOPTFLAGS="-g -O3 -axCORE-AVX2,AVX -xSSE4.2" \
-	-FOPTFLAGS="-g -O3 -axCORE-AVX2,AVX -xSSE4.2" \
-	--with-blas-lapack-dir="/nasa/intel/Compiler/2016.2.181/compilers_and_libraries_2016.2.181/linux/mkl/" \
-	--with-scalapack-include=/nasa/intel/Compiler/2016.2.181/mkl/include \
-	--with-scalapack-lib="/nasa/intel/Compiler/2016.2.181/mkl/lib/intel64/libmkl_scalapack_lp64.so /nasa/intel/Compiler/2016.2.181/mkl/lib/intel64/libmkl_blacs_sgimpt_lp64.so" \
-	--known-mpi-shared-libraries=1 \
-	--with-gnu-compilers=0 \
-	--with-vendor-compilers=intel \
-	--with-debugging=0 \
-	--with-valgrind=0 \
-	--with-x=0 \
-	--with-ssl=0 \
-	--with-batch=1 \
-	--with-shared-libraries=1 \
-	--download-metis=1 \
-	--download-parmetis=1 \
-	--download-mumps=1 \
-	--download-zlib=1
-
-# Compile and install
-make
-make install
Index: /issm/trunk-jpl/externalpackages/petsc/install-3.14-linux-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.14-linux-static.sh	(revision 27553)
+++ /issm/trunk-jpl/externalpackages/petsc/install-3.14-linux-static.sh	(revision 27553)
@@ -0,0 +1,58 @@
+#!/bin/bash
+set -eu
+
+
+## Constants
+#
+VER="3.14.6"
+
+PETSC_DIR=${ISSM_DIR}/externalpackages/petsc/src # DO NOT CHANGE THIS
+PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
+
+# Download source
+$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
+
+# Unpack source
+tar -zxvf petsc-${VER}.tar.gz
+
+# Cleanup
+rm -rf ${PREFIX} ${PETSC_DIR}
+mkdir -p ${PETSC_DIR}
+
+# Move source to $PETSC_DIR
+mv petsc-${VER}/* ${PETSC_DIR}
+rm -rf petsc-${VER}
+
+# Configure
+#
+# NOTE:
+# - Cannot use --with-fpic option when compiling static libs,
+#
+#		Cannot determine compiler PIC flags if shared libraries is turned off
+#		Either run using --with-shared-libraries or --with-pic=0 and supply the
+#		compiler PIC flag via CFLAGS, CXXXFLAGS, and FCFLAGS
+#
+cd ${PETSC_DIR}
+./config/configure.py \
+	--prefix="${PREFIX}" \
+	--PETSC_DIR="${PETSC_DIR}" \
+	--with-shared-libraries=0 \
+	--CFLAGS="-fPIC" \
+	--CXXFLAGS="-fPIC" \
+	--FFLAGS="-fPIC" \
+	--with-debugging=0 \
+	--with-valgrind=0 \
+	--with-x=0 \
+	--with-ssl=0 \
+	--download-fblaslapack=1 \
+	--download-mpich=1 \
+	--download-metis=1 \
+	--download-parmetis=1 \
+	--download-scalapack=1 \
+	--download-mumps=1 \
+	--download-zlib=1 \
+	--download-hdf5=1
+
+# Compile and install
+make
+make install
Index: sm/trunk-jpl/externalpackages/petsc/install-3.14-mac-nohdf5.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.14-mac-nohdf5.sh	(revision 27552)
+++ 	(revision )
@@ -1,59 +1,0 @@
-#!/bin/bash
-set -eu
-
-
-## Constants
-#
-VER="3.14.6"
-
-PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS
-PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
-
-# Download source
-$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
-
-# Unpack source
-tar -zxvf petsc-${VER}.tar.gz
-
-# Cleanup
-rm -rf ${PREFIX} ${PETSC_DIR}
-mkdir -p ${PETSC_DIR}
-
-# Move source to $PETSC_DIR
-mv petsc-${VER}/* ${PETSC_DIR}
-rm -rf petsc-${VER}
-
-# Configure
-#
-# NOTE:
-# - Added -Wno-error=implicit-function-declaration to CFLAGS for Clang >= 12. 
-#	(may need to remove it for earlier versions not using the C99 standard).
-# - Added -fallow-argument-mismatch to FFLAGS in order to clear,
-#
-#		error: The Fortran compiler gfortran will not compile files that call 
-#		the same routine with arguments of different types.
-#
-#	for gfortran 10 or later (may need to remove it for earlier versions).
-#
-cd ${PETSC_DIR}
-./config/configure.py \
-	--prefix="${PREFIX}" \
-	--PETSC_DIR="${PETSC_DIR}" \
-	--CFLAGS="-Wno-error=implicit-function-declaration" \
-	--FFLAGS="-fallow-argument-mismatch" \
-	--with-debugging=0 \
-	--with-valgrind=0 \
-	--with-x=0 \
-	--with-ssl=0 \
-	--with-pic=1 \
-	--download-fblaslapack=1 \
-	--download-mpich=1 \
-	--download-metis=1 \
-	--download-parmetis=1 \
-	--download-scalapack=1 \
-	--download-mumps=1 \
-	--download-zlib=1
-
-# Compile and install
-make
-make install
Index: /issm/trunk-jpl/externalpackages/petsc/install-3.14-mac-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.14-mac-static.sh	(revision 27553)
+++ /issm/trunk-jpl/externalpackages/petsc/install-3.14-mac-static.sh	(revision 27553)
@@ -0,0 +1,63 @@
+#!/bin/bash
+set -eu
+
+
+## Constants
+#
+VER="3.14.6"
+
+PETSC_DIR=${ISSM_DIR}/externalpackages/petsc/src # DO NOT CHANGE THIS
+PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
+
+# Download source
+$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
+
+# Unpack source
+tar -zxvf petsc-${VER}.tar.gz
+
+# Cleanup
+rm -rf ${PREFIX} ${PETSC_DIR}
+mkdir -p ${PETSC_DIR}
+
+# Move source to $PETSC_DIR
+mv petsc-${VER}/* ${PETSC_DIR}
+rm -rf petsc-${VER}
+
+# Configure
+#
+# NOTE:
+# - Cannot use --with-fpic option when compiling static libs,
+#
+#		Cannot determine compiler PIC flags if shared libraries is turned off
+#		Either run using --with-shared-libraries or --with-pic=0 and supply the
+#		compiler PIC flag via CFLAGS, CXXXFLAGS, and FCFLAGS
+#
+# - Added -Wno-error=implicit-function-declaration to CFLAGS for Clang >= 12. 
+#	(may need to remove it for earlier versions not using the C99 standard).
+# - Added -static-libgfortran to all macOS static builds, but this will not 
+#	work out of the box on Linux.
+#
+cd ${PETSC_DIR}
+./config/configure.py \
+	--prefix="${PREFIX}" \
+	--PETSC_DIR="${PETSC_DIR}" \
+	--with-shared-libraries=0 \
+	--CFLAGS="-fPIC -Wno-error=implicit-function-declaration" \
+	--CXXFLAGS="-fPIC" \
+	--FFLAGS="-fPIC -static-libgfortran" \
+	--with-debugging=0 \
+	--with-valgrind=0 \
+	--with-x=0 \
+	--with-ssl=0 \
+	--download-fblaslapack=1 \
+	--download-mpich=1 \
+	--download-metis=1 \
+	--download-parmetis=1 \
+	--download-scalapack=1 \
+	--download-mumps=1 \
+	--download-zlib=1 \
+	--download-hdf5=1
+
+# Compile and install
+make
+make install
Index: /issm/trunk-jpl/externalpackages/petsc/install-3.14-mac-with-hdf5.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.14-mac-with-hdf5.sh	(revision 27553)
+++ /issm/trunk-jpl/externalpackages/petsc/install-3.14-mac-with-hdf5.sh	(revision 27553)
@@ -0,0 +1,59 @@
+#!/bin/bash
+set -eu
+
+
+## Constants
+#
+VER="3.14.6"
+
+PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS
+PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
+
+# Download source
+$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
+
+# Unpack source
+tar -zxvf petsc-${VER}.tar.gz
+
+# Cleanup
+rm -rf ${PREFIX} ${PETSC_DIR}
+mkdir -p ${PETSC_DIR}
+
+# Move source to $PETSC_DIR
+mv petsc-${VER}/* ${PETSC_DIR}
+rm -rf petsc-${VER}
+
+# Modify source so that Python 3 can be used to compile PETSc
+sed -i'' 's|#!/usr/bin/env python|#!/usr/bin/env python3|g' ${PETSC_DIR}/config/configure.py
+
+# Modify source so that Python >= 3.9 can be used to compile PETSc
+sed -i'' 's|thread.isAlive|thread.is_alive|g' ${PETSC_DIR}/config/BuildSystem/script.py
+
+# Configure
+#
+# NOTE:
+# - Added -Wno-error=implicit-function-declaration to CFLAGS for Clang >= 12. 
+#	(may need to remove it for earlier versions not using the C99 standard).
+#
+cd ${PETSC_DIR}
+./configure \
+	--prefix="${PREFIX}" \
+	--PETSC_DIR="${PETSC_DIR}" \
+	--CFLAGS="-Wno-error=implicit-function-declaration" \
+	--with-debugging=0 \
+	--with-valgrind=0 \
+	--with-x=0 \
+	--with-ssl=0 \
+	--with-pic=1 \
+	--download-fblaslapack=1 \
+	--download-mpich=1 \
+	--download-metis=1 \
+	--download-parmetis=1 \
+	--download-scalapack=1 \
+	--download-mumps=1 \
+	--download-zlib=1 \
+	--download-hdf5=1
+
+# Compile and install
+make
+make install
Index: /issm/trunk-jpl/externalpackages/petsc/install-3.14-mac.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.14-mac.sh	(revision 27552)
+++ /issm/trunk-jpl/externalpackages/petsc/install-3.14-mac.sh	(revision 27553)
@@ -25,8 +25,8 @@
 
 # Modify source so that Python 3 can be used to compile PETSc
-sed -i '' 's|#!/usr/bin/env python|#!/usr/bin/env python3|g' ${PETSC_DIR}/config/configure.py
+sed -i'' 's|#!/usr/bin/env python|#!/usr/bin/env python3|g' ${PETSC_DIR}/config/configure.py
 
 # Modify source so that Python >= 3.9 can be used to compile PETSc
-sed -i '' 's|thread.isAlive|thread.is_alive|g' ${PETSC_DIR}/config/BuildSystem/script.py
+sed -i'' 's|thread.isAlive|thread.is_alive|g' ${PETSC_DIR}/config/BuildSystem/script.py
 
 # Configure
@@ -35,17 +35,10 @@
 # - Added -Wno-error=implicit-function-declaration to CFLAGS for Clang >= 12. 
 #	(may need to remove it for earlier versions not using the C99 standard).
-# - Added -fallow-argument-mismatch to FFLAGS in order to clear,
-#
-#		error: The Fortran compiler gfortran will not compile files that call 
-#		the same routine with arguments of different types.
-#
-#	for gfortran 10 or later (may need to remove it for earlier versions).
 #
 cd ${PETSC_DIR}
-./config/configure.py \
+./configure \
 	--prefix="${PREFIX}" \
 	--PETSC_DIR="${PETSC_DIR}" \
 	--CFLAGS="-Wno-error=implicit-function-declaration" \
-	--FFLAGS="-fallow-argument-mismatch" \
 	--with-debugging=0 \
 	--with-valgrind=0 \
@@ -59,6 +52,5 @@
 	--download-scalapack=1 \
 	--download-mumps=1 \
-	--download-zlib=1 \
-	--download-hdf5=1
+	--download-zlib=1
 
 # Compile and install
Index: /issm/trunk-jpl/externalpackages/petsc/install-3.15-babylon.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.15-babylon.sh	(revision 27552)
+++ /issm/trunk-jpl/externalpackages/petsc/install-3.15-babylon.sh	(revision 27553)
@@ -41,6 +41,5 @@
 	--download-scalapack=1 \
 	--download-mumps=1 \
-	--download-zlib=1 \
-	--download-hdf5=1
+	--download-zlib=1
 
 # Compile and install
Index: /issm/trunk-jpl/externalpackages/petsc/install-3.16-linux.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.16-linux.sh	(revision 27552)
+++ /issm/trunk-jpl/externalpackages/petsc/install-3.16-linux.sh	(revision 27553)
@@ -29,10 +29,4 @@
 # - Added -Wno-error=implicit-function-declaration to CFLAGS for Clang >= 12. 
 #	(may need to remove it for earlier versions not using the C99 standard).
-# - Added -fallow-argument-mismatch to FFLAGS in order to clear,
-#
-#		error: The Fortran compiler gfortran will not compile files that call 
-#		the same routine with arguments of different types.
-#
-#	for gfortran 10 or later (may need to remove it for earlier versions).
 #
 cd ${PETSC_DIR}
@@ -41,5 +35,4 @@
 	--PETSC_DIR="${PETSC_DIR}" \
 	--CFLAGS="-Wno-error=implicit-function-declaration" \
-	--FFLAGS="-fallow-argument-mismatch" \
 	--with-debugging=0 \
 	--with-valgrind=0 \
@@ -53,6 +46,5 @@
 	--download-scalapack=1 \
 	--download-mumps=1 \
-	--download-zlib=1 \
-	--download-hdf5=1
+	--download-zlib=1
 
 # Compile and install
Index: /issm/trunk-jpl/externalpackages/petsc/install-3.16-mac.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.16-mac.sh	(revision 27552)
+++ /issm/trunk-jpl/externalpackages/petsc/install-3.16-mac.sh	(revision 27553)
@@ -29,10 +29,4 @@
 # - Added -Wno-error=implicit-function-declaration to CFLAGS for Clang >= 12. 
 #	(may need to remove it for earlier versions not using the C99 standard).
-# - Added -fallow-argument-mismatch to FFLAGS in order to clear,
-#
-#		error: The Fortran compiler gfortran will not compile files that call 
-#		the same routine with arguments of different types.
-#
-#	for gfortran 10 or later (may need to remove it for earlier versions).
 #
 cd ${PETSC_DIR}
@@ -41,5 +35,4 @@
 	--PETSC_DIR="${PETSC_DIR}" \
 	--CFLAGS="-Wno-error=implicit-function-declaration" \
-	--FFLAGS="-fallow-argument-mismatch" \
 	--with-debugging=0 \
 	--with-valgrind=0 \
@@ -53,6 +46,5 @@
 	--download-scalapack=1 \
 	--download-mumps=1 \
-	--download-zlib=1 \
-	--download-hdf5=1
+	--download-zlib=1
 
 # Compile and install
Index: /issm/trunk-jpl/externalpackages/petsc/install-3.17-mac-intel.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.17-mac-intel.sh	(revision 27552)
+++ /issm/trunk-jpl/externalpackages/petsc/install-3.17-mac-intel.sh	(revision 27553)
@@ -25,8 +25,14 @@
 
 # Configure
+#
+# NOTE:
+# - Added -Wno-error=implicit-function-declaration to CFLAGS for Clang >= 12. 
+#	(may need to remove it for earlier versions not using the C99 standard).
+#
 cd ${PETSC_DIR}
 ./configure \
 	--prefix="${PREFIX}" \
 	--PETSC_DIR="${PETSC_DIR}" \
+	--CFLAGS="-Wno-error=implicit-function-declaration" \
 	--with-debugging=0 \
 	--with-valgrind=0 \
@@ -40,6 +46,5 @@
 	--download-scalapack=1 \
 	--download-mumps=1 \
-	--download-zlib=1 \
-	--download-hdf5=1
+	--download-zlib=1
 
 # Compile and install
Index: sm/trunk-jpl/externalpackages/petsc/install-3.17-mac-m1-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.17-mac-m1-static.sh	(revision 27552)
+++ 	(revision )
@@ -1,64 +1,0 @@
-#!/bin/bash
-set -eu
-
-
-## Constants
-#
-VER="3.17.4"
-
-PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS
-PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
-
-# Download source
-$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
-
-# Unpack source
-tar -zxvf petsc-${VER}.tar.gz
-
-# Cleanup
-rm -rf ${PREFIX} ${PETSC_DIR}
-mkdir -p ${PETSC_DIR}
-
-# Move source to $PETSC_DIR
-mv petsc-${VER}/* ${PETSC_DIR}
-rm -rf petsc-${VER}
-
-# Configure
-#
-# NOTE:
-# - Cannot use --with-fpic option when compiling static libs,
-#
-#		Cannot determine compiler PIC flags if shared libraries is turned off
-#		Either run using --with-shared-libraries or --with-pic=0 and supply the
-#		compiler PIC flag via CFLAGS, CXXXFLAGS, and FCFLAGS
-#
-# - Added -fallow-argument-mismatch to FFLAGS in order to clear,
-#
-#		error: The Fortran compiler gfortran will not compile files that call 
-#		the same routine with arguments of different types.
-#
-#	for gfortran 10 or later (may need to remove it for earlier versions).
-cd ${PETSC_DIR}
-./configure \
-	--prefix="${PREFIX}" \
-	--PETSC_DIR="${PETSC_DIR}" \
-	--LDFLAGS="-Wl,-no_compact_unwind" \
-	--with-shared-libraries=0 \
-	--CFLAGS="-fPIC" \
-	--CXXFLAGS="-fPIC" \
-	--FFLAGS="-fPIC" \
-	--with-debugging=0 \
-	--with-valgrind=0 \
-	--with-x=0 \
-	--with-ssl=0 \
-	--download-fblaslapack=1 \
-	--download-mpich=1 \
-	--download-metis=1 \
-	--download-parmetis=1 \
-	--download-scalapack=1 \
-	--download-mumps=1 \
-	--download-zlib=1 
-
-# Compile and install
-make
-make install
Index: sm/trunk-jpl/externalpackages/petsc/install-3.17-mac-m1.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.17-mac-m1.sh	(revision 27552)
+++ 	(revision )
@@ -1,47 +1,0 @@
-#!/bin/bash
-set -eu
-
-
-## Constants
-#
-VER="3.17.4"
-
-PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS
-PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
-
-# Download source
-$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
-
-# Unpack source
-tar -zxvf petsc-${VER}.tar.gz
-
-# Cleanup
-rm -rf ${PREFIX} ${PETSC_DIR}
-mkdir -p ${PETSC_DIR}
-
-# Move source to $PETSC_DIR
-mv petsc-${VER}/* ${PETSC_DIR}
-rm -rf petsc-${VER}
-
-# Configure
-cd ${PETSC_DIR}
-./configure \
-	--prefix="${PREFIX}" \
-	--PETSC_DIR="${PETSC_DIR}" \
-	--LDFLAGS="-Wl,-no_compact_unwind" \
-	--with-debugging=0 \
-	--with-valgrind=0 \
-	--with-x=0 \
-	--with-ssl=0 \
-	--with-pic=1 \
-	--download-fblaslapack=1 \
-	--download-mpich=1 \
-	--download-metis=1 \
-	--download-parmetis=1 \
-	--download-scalapack=1 \
-	--download-mumps=1 \
-	--download-zlib=1 
-
-# Compile and install
-make
-make install
Index: /issm/trunk-jpl/externalpackages/petsc/install-3.17-mac-silicon-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.17-mac-silicon-static.sh	(revision 27553)
+++ /issm/trunk-jpl/externalpackages/petsc/install-3.17-mac-silicon-static.sh	(revision 27553)
@@ -0,0 +1,58 @@
+#!/bin/bash
+set -eu
+
+
+## Constants
+#
+VER="3.17.4"
+
+PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS
+PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
+
+# Download source
+$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
+
+# Unpack source
+tar -zxvf petsc-${VER}.tar.gz
+
+# Cleanup
+rm -rf ${PREFIX} ${PETSC_DIR}
+mkdir -p ${PETSC_DIR}
+
+# Move source to $PETSC_DIR
+mv petsc-${VER}/* ${PETSC_DIR}
+rm -rf petsc-${VER}
+
+# Configure
+#
+# NOTE:
+# - Cannot use --with-fpic option when compiling static libs,
+#
+#		Cannot determine compiler PIC flags if shared libraries is turned off
+#		Either run using --with-shared-libraries or --with-pic=0 and supply the
+#		compiler PIC flag via CFLAGS, CXXXFLAGS, and FCFLAGS
+#
+cd ${PETSC_DIR}
+./configure \
+	--prefix="${PREFIX}" \
+	--PETSC_DIR="${PETSC_DIR}" \
+	--LDFLAGS="-Wl,-no_compact_unwind" \
+	--with-shared-libraries=0 \
+	--CFLAGS="-fPIC" \
+	--CXXFLAGS="-fPIC" \
+	--FFLAGS="-fPIC" \
+	--with-debugging=0 \
+	--with-valgrind=0 \
+	--with-x=0 \
+	--with-ssl=0 \
+	--download-fblaslapack=1 \
+	--download-mpich=1 \
+	--download-metis=1 \
+	--download-parmetis=1 \
+	--download-scalapack=1 \
+	--download-mumps=1 \
+	--download-zlib=1 
+
+# Compile and install
+make
+make install
Index: /issm/trunk-jpl/externalpackages/petsc/install-3.17-mac-silicon.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.17-mac-silicon.sh	(revision 27553)
+++ /issm/trunk-jpl/externalpackages/petsc/install-3.17-mac-silicon.sh	(revision 27553)
@@ -0,0 +1,47 @@
+#!/bin/bash
+set -eu
+
+
+## Constants
+#
+VER="3.17.4"
+
+PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS
+PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
+
+# Download source
+$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
+
+# Unpack source
+tar -zxvf petsc-${VER}.tar.gz
+
+# Cleanup
+rm -rf ${PREFIX} ${PETSC_DIR}
+mkdir -p ${PETSC_DIR}
+
+# Move source to $PETSC_DIR
+mv petsc-${VER}/* ${PETSC_DIR}
+rm -rf petsc-${VER}
+
+# Configure
+cd ${PETSC_DIR}
+./configure \
+	--prefix="${PREFIX}" \
+	--PETSC_DIR="${PETSC_DIR}" \
+	--LDFLAGS="-Wl,-no_compact_unwind" \
+	--with-debugging=0 \
+	--with-valgrind=0 \
+	--with-x=0 \
+	--with-ssl=0 \
+	--with-pic=1 \
+	--download-fblaslapack=1 \
+	--download-mpich=1 \
+	--download-metis=1 \
+	--download-parmetis=1 \
+	--download-scalapack=1 \
+	--download-mumps=1 \
+	--download-zlib=1 
+
+# Compile and install
+make
+make install
Index: sm/trunk-jpl/externalpackages/petsc/install-3.6-win10.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.6-win10.sh	(revision 27552)
+++ 	(revision )
@@ -1,41 +1,0 @@
-#!/bin/bash
-set -eu
-
-#Some cleanup
-rm -rf install petsc-3.6.2 src
-mkdir install src
-
-#Download from ISSM server
-$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/petsc-lite-3.6.2.tar.gz' 'petsc-3.6.2.tar.gz'
-
-#Untar and move petsc to install directory
-tar -zxvf  petsc-3.6.2.tar.gz
-mv petsc-3.6.2/* src/
-rm -rf petsc-3.6.2
-
-export PETSC_DIR=`cygpath -u "$ISSM_DIR/externalpackages/petsc/src"`
-export PREFIX_DIR=`cygpath -u "$ISSM_DIR/externalpackages/petsc/install"`
-
-#configure
-cd src
-./config/configure.py  \
-	--with-parallel-no \
-	--prefix=$PREFIX_DIR \
-	--PETSC_ARCH=cygwin-intel \
-	--PETSC_DIR=$PETSC_DIR \
-	--with-mpi=0 \
-	--with-debugging=0 \
-	--with-valgrind=0 \
-	--with-x=0 \
-	--with-ssl=0 \
-	--download-f2cblaslapack=yes \
-	--with-cc='win32fe cl' \
-	--with-fc=0 \
-	--with-cxx='win32fe cl' \
-	--with-clanguage=cxx 
-
-#Compile petsc and install it
-make
-make install
-
-patch ../install/include/petscfix.h ../configs/3.1/win7/petscfix.h.patch
Index: sm/trunk-jpl/externalpackages/petsc/install-3.7-discover.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.7-discover.sh	(revision 27552)
+++ 	(revision )
@@ -1,62 +1,0 @@
-#!/bin/bash
-set -eu
-
-#Some cleanup
-rm -rf install petsc-3.7.6 src
-mkdir install src
-
-#Download from ISSM server
-$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/petsc-lite-3.7.6.tar.gz' 'petsc-3.7.6.tar.gz'
-
-#Untar and move petsc to install directory
-tar -zxvf  petsc-3.7.6.tar.gz
-mv petsc-3.7.6/* src/
-rm -rf petsc-3.7.6
-
-#configure
-cd src
-./config/configure.py \
-	--prefix="$ISSM_DIR/externalpackages/petsc/install" \
-	--PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
-	--with-blas-lapack-dir="/usr/local/intel/2020/compilers_and_libraries_2020.0.166/linux/mkl/" \
-	--with-mpi-lib="/usr/local/sgi/mpi/mpt-2.17/lib/libmpi.so" \
-	--with-mpi-include="/usr/local/sgi/mpi/mpt-2.17/include/" \
-	--known-mpi-shared-libraries=1 \
-	--with-debugging=0 \
-	--with-valgrind=0 \
-	--with-x=0 \
-	--with-ssl=0 \
-	--with-batch=1  \
-	--with-shared-libraries=1 \
-	--download-metis=1 \
-	--download-parmetis=1 \
-	--download-mumps=1 \
-	--download-scalapack=1 
-
-#prepare script to reconfigure petsc
-cat > script.queue << EOF
-#!/bin/bash
-#SBATCH -J petscinstall # Job Name
-#SBATCH -N 1
-#SBATCH -n 1
-#SBATCH -A s1690
-#SBATCH -t 00:01:00 # Run time (hh:mm:ss) - 1.5 hours
-#SBATCH --qos=debug
-#SBATCH -o petscinstall.outlog
-#SBATCH -e petscinstall.errlog
-
-. /usr/share/modules/init/bash
-module purge
-module load comp/intel/20.0.0.166
-module load mpi/sgi-mpt/2.17
-module load cmake/3.17.0
-
-export PATH="$PATH:."
-export MPI_GROUP_MAX=64
-mpiexec -np 1 ./conftest-arch-linux2-c-opt
-EOF
-
-#print instructions
-echo "== Now: cd src/ "
-echo "== sbatch script.queue "
-echo "== Then run reconfigure script generated by PETSc and follow instructions"
Index: sm/trunk-jpl/externalpackages/petsc/install-dev-linux64.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-dev-linux64.sh	(revision 27552)
+++ 	(revision )
@@ -1,49 +1,0 @@
-#!/bin/bash
-
-STEP=2
-
-if [ $STEP -eq 1 ]; then
-	rm -rf src
-	git clone https://bitbucket.org/petsc/petsc src
-fi
-
-# To update 
-#      cd src
-#      git pull
-
-# configure script
-# Note: 
-# SuperLU: -If download-..-=yes does not work try downloading from
-#    --download-superlu=http://crd.lbl.gov/~xiaoye/SuperLU/superlu_4.3.tar.gz \
-
-
-if [ $STEP -eq 2 ]; then
-	rm -rf install
-	cd src
-	./configure \
-		--prefix="$ISSM_DIR/externalpackages/petsc/install" \
-		--with-mpi-dir="$ISSM_DIR/externalpackages/mpich/install" \
-		--PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
-		--with-debugging=1 \
-		--with-valgrind=0 \
-		--with-x=0 \
-		--with-ssl=0 \
-		--with-shared-libraries=1 \
-		--download-metis=1 \
-		--download-parmetis=1 \
-		--download-mumps=1 \
-		--download-scalapack=1 \
-		--download-fblaslapack=1 \
-		--with-pic=1
-
-#	--download-trilinos=yes \
-#	--download-euclid=yes \
-#	--download-spooles=yes \
-#	--download-spai=yes \
-#	--download-superlu=http://crd.lbl.gov/~xiaoye/SuperLU/superlu_4.3.tar.gz \
-#	--download-hypre=yes \
-
-	#Compile petsc and install it
-	make
-	make install
-fi
Index: sm/trunk-jpl/externalpackages/petsc/install-dev-pleiades.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-dev-pleiades.sh	(revision 27552)
+++ 	(revision )
@@ -1,78 +1,0 @@
-#!/bin/bash
-#Step 0: download
-#Step 1: install and write script
-STEP=1
-
-if [ $STEP -eq 0 ]; then
-	# Adapted from petsc 3.2. 
-	# Used Mercurial to get code
-	rm -rf src
-	hg clone http://petsc.cs.iit.edu/petsc/petsc-dev src
-	cd src
-	hg clone http://petsc.cs.iit.edu/petsc/BuildSystem config/BuildSystem
-fi
-
-# To update (via Mercurial):
-#      cd petsc-dev
-#      hg pull -u
-#      cd config/BuildSystem
-#      hg pull -u
-
-# configure script
-# Note: using metis from externalpackages did not work...
-# for now downloading new metis
-#   -then rename metis in externalpackages to metis2
-#
-#		--download-prometheus=yes \
-#--download-superlu=http://crd.lbl.gov/~xiaoye/SuperLU/superlu_4.3.tar.gz \
-#		--download-plapack=yes \
-
-if [ $STEP -eq 1 ]; then
-
-	#configure
-	cd src
-	./config/configure.py \
-		--prefix="$ISSM_DIR/externalpackages/petsc/install" \
-		--with-batch=1  \
-		--PETSC_ARCH="$ISSM_ARCH" \
-		--PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
-		--with-debugging=0 \
-		--with-shared-libraries=1 \
-		--with-blas-lapack-dir=/nasa/intel/mkl/10.0.011/ \
-		--known-mpi-shared-libraries=1 \
-		--with-mpi=1 \
-		--download-mumps=yes \
-		--download-scalapack=yes \
-		--download-blacs=yes  \
-		--download-blas=yes \
-		--download-f-blas-lapack=yes \
-		--download-parmetis=yes \
-		--download-metis=yes \
-		--download-trilinos=yes \
-		--download-euclid=yes \
-		--download-spai=yes \
-		--download-superlu=http://crd.lbl.gov/~xiaoye/SuperLU/superlu_4.3.tar.gz \
-		--download-hypre=yes \
-		--with-cxx=/nasa/sgi/mpt/2.06a67/bin/mpicxx \
-		--with-fc=/nasa/sgi/mpt/2.06a67/bin/mpif90 \
-		--COPTFLAGS="-lmpi -O3" \
-		--FOPTFLAGS="-lmpi -O3" \
-		--CXXOPTFLAGS="-lmpi -O3" 
-		cat > script.queue << EOF
-#PBS -S /bin/bash
-#PBS -l select=1:ncpus=1:model=wes 
-#PBS -l walltime=200 
-#PBS -W group_list=s1010 
-#PBS -m e 
-. /usr/share/modules/init/bash 
-module load comp-intel/2012.0.032 
-module load mpi-sgi/mpt.2.06a67  
-module load math/intel_mkl_64_10.0.011 
-export PATH="$PATH:." 
-export MPI_GROUP_MAX=64 
-mpiexec -np 1 ./conftest-linux-gnu-ia64-intel.py
-EOF
-	echo "== Now: cd src/ "
-	echo "== qsub -q devel script.queue "
-	echo "== Then run reconfigure script generated by PETSc and follow instructions"
-fi
Index: sm/trunk-jpl/externalpackages/petsc/install-dev-win10-par.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-dev-win10-par.sh	(revision 27552)
+++ 	(revision )
@@ -1,35 +1,0 @@
-#!/bin/bash
-
-STEP=1
-
-rm -rf src
-
-if [ $STEP -eq 1 ]; then
-	git clone -b maint https://bitbucket.org/petsc/petsc src
-fi
-
-export PETSC_DIR=`cygpath -u "$ISSM_DIR/externalpackages/petsc/src"`
-export PREFIX_DIR=`cygpath -u "$ISSM_DIR/externalpackages/petsc/install"`
-
-#configure
-cd src
-./config/configure.py  \
-	--prefix=$PREFIX_DIR \
-	--PETSC_ARCH=cygwin-intel \
-	--PETSC_DIR=$PETSC_DIR \
-	--with-mpi-dir="/cygdrive/c/Programs/MPICH2/"\
-	--with-debugging=0 \
-	--with-valgrind=0 \
-	--with-x=0 \
-	--with-ssl=0 \
-	--download-f2cblaslapack=yes \
-	--with-cc='win32fe cl' \
-	--with-fc=0 \
-	--with-cxx='win32fe cl' \
-	--with-clanguage=cxx 
-
-#Compile petsc and install it
-make
-make install
-
-patch ../install/include/petscfix.h ../configs/3.1/win7/petscfix.h.patch
Index: sm/trunk-jpl/externalpackages/petsc/install-dev-win10.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-dev-win10.sh	(revision 27552)
+++ 	(revision )
@@ -1,34 +1,0 @@
-#!/bin/bash
-
-STEP=1
-
-if [ $STEP -eq 1 ]; then
-	git clone -b maint https://bitbucket.org/petsc/petsc src
-fi
-
-export PETSC_DIR=`cygpath -u "$ISSM_DIR/externalpackages/petsc/src"`
-export PREFIX_DIR=`cygpath -u "$ISSM_DIR/externalpackages/petsc/install"`
-
-#configure
-cd src
-./config/configure.py  \
-	--with-parallel-no \
-	--prefix=$PREFIX_DIR \
-	--PETSC_ARCH=cygwin-intel \
-	--PETSC_DIR=$PETSC_DIR \
-	--with-mpi=0 \
-	--with-debugging=0 \
-	--with-valgrind=0 \
-	--with-x=0 \
-	--with-ssl=0 \
-	--download-f2cblaslapack=yes \
-	--with-cc='win32fe cl' \
-	--with-fc=0 \
-	--with-cxx='win32fe cl' \
-	--with-clanguage=cxx 
-
-#Compile petsc and install it
-make
-make install
-
-patch ../install/include/petscfix.h ../configs/3.1/win7/petscfix.h.patch
Index: /issm/trunk-jpl/jenkins/examples_tests.sh
===================================================================
--- /issm/trunk-jpl/jenkins/examples_tests.sh	(revision 27552)
+++ /issm/trunk-jpl/jenkins/examples_tests.sh	(revision 27553)
@@ -6,5 +6,5 @@
 # called from jenkins/jenkins.sh.
 #
-# runme files are modifed as needed to fill in statements that would otherwise 
+# runme files are modified as needed to fill in statements that would otherwise 
 # be added by user.
 #
Index: /issm/trunk-jpl/jenkins/mac-binaries-python
===================================================================
--- /issm/trunk-jpl/jenkins/mac-binaries-python	(revision 27553)
+++ /issm/trunk-jpl/jenkins/mac-binaries-python	(revision 27553)
@@ -0,0 +1,92 @@
+#--------------------#
+# ISSM Configuration #
+#--------------------#
+
+# NOTE:
+# - We can disable dependency tracking in the Autotools because the binaries
+#	should always be a one-time build.
+#
+# TODO:
+# - Add static copy of libsqlite and make sure it is found during GMT configuration
+#
+
+ISSM_CONFIG='\
+	--prefix=${ISSM_DIR} \
+	--enable-standalone-executables \
+	--enable-standalone-modules \
+	--enable-standalone-libraries \
+	--disable-dependency-tracking \
+	--with-python-version="3.9" \
+	--with-python-dir=/System/Volumes/Data/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9 \
+	--with-python-numpy-dir=/Library/Python/3.9/site-packages/numpy/core/include/numpy \
+	--with-fortran-lib="/usr/local/Cellar/gcc/12.2.0/lib/gcc/12/libgfortran.a /usr/local/Cellar/gcc/12.2.0/lib/gcc/12/libquadmath.a //usr/local/Cellar/gcc/12.2.0/lib/gcc/12/gcc/x86_64-apple-darwin21/12/libgcc.a" \
+	--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-hdf5-dir=${ISSM_DIR}/externalpackages/petsc/install \
+	--with-petsc-dir=${ISSM_DIR}/externalpackages/petsc/install \
+	--with-gsl-dir=${ISSM_DIR}/externalpackages/gsl/install \
+	--with-boost-dir=${ISSM_DIR}/externalpackages/boost/install \
+	--with-dakota-dir=${ISSM_DIR}/externalpackages/dakota/install \
+	--with-proj-dir=${ISSM_DIR}/externalpackages/proj/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 #
+#-------------------#
+
+EXTERNALPACKAGES="
+	autotools	install-mac.sh
+	cmake		install.sh
+	petsc		install-3.14-mac-static.sh
+	gsl			install-static.sh
+	boost		install-1.7-mac-static.sh
+	dakota		install-6.2-mac-static.sh
+	curl		install-7-mac-static.sh
+	netcdf		install-4.7-parallel-static.sh
+	proj		install-6-static.sh
+	gdal		install-3-python-static.sh
+	gshhg		install.sh
+	gmt			install-6-mac-static.sh
+	gmsh		install-4-mac-static.sh
+	triangle	install-mac-static.sh
+	chaco		install-mac.sh
+	m1qn3		install.sh
+	semic		install.sh
+	shell2junit	install.sh
+"
+
+#---------#
+# Testing #
+#---------#
+
+# Test suites
+MATLAB_TEST=0
+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=8
+
+# Number of CPUs used in the nightly runs
+NUMCPUS_RUN=1
+
+# Nightly run options
+#
+# See documentation in test/NightlyRun/runme.* for more information.
+#
+PYTHON_NROPTIONS=""
+MATLAB_NROPTIONS=""
Index: /issm/trunk-jpl/jenkins/mac-intel-binaries-matlab
===================================================================
--- /issm/trunk-jpl/jenkins/mac-intel-binaries-matlab	(revision 27553)
+++ /issm/trunk-jpl/jenkins/mac-intel-binaries-matlab	(revision 27553)
@@ -0,0 +1,94 @@
+#--------------------#
+# ISSM Configuration #
+#--------------------#
+
+# MATLAB path
+MATLAB_PATH="/Applications/MATLAB_R2018a.app"
+
+# NOTE:
+# - We can disable dependency tracking in the Autotools because the binaries
+#	should always be a one-time build.
+#
+# TODO:
+# - Add static copy of libsqlite and make sure it is found during GMT configuration
+#
+
+# ISSM CONFIGURATION
+ISSM_CONFIG='\
+	--prefix=${ISSM_DIR} \
+	--enable-standalone-executables \
+	--enable-standalone-modules \
+	--enable-standalone-libraries \
+	--disable-dependency-tracking \
+	--with-matlab-dir=${MATLAB_PATH} \
+	--with-fortran-lib="/usr/local/Cellar/gcc/12.2.0/lib/gcc/12/libgfortran.a /usr/local/Cellar/gcc/12.2.0/lib/gcc/12/libquadmath.a //usr/local/Cellar/gcc/12.2.0/lib/gcc/12/gcc/x86_64-apple-darwin21/12/libgcc.a" \
+	--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-hdf5-dir=${ISSM_DIR}/externalpackages/petsc/install \
+	--with-petsc-dir=${ISSM_DIR}/externalpackages/petsc/install \
+	--with-gsl-dir=${ISSM_DIR}/externalpackages/gsl/install \
+	--with-boost-dir=${ISSM_DIR}/externalpackages/boost/install \
+	--with-dakota-dir=${ISSM_DIR}/externalpackages/dakota/install \
+	--with-proj-dir=${ISSM_DIR}/externalpackages/proj/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 #
+#-------------------#
+
+EXTERNALPACKAGES="
+	autotools	install-mac.sh
+	cmake		install.sh
+	petsc		install-3.14-mac-static.sh
+	gsl			install-static.sh
+	boost		install-1.7-mac-static.sh
+	dakota		install-6.2-mac-static.sh
+	curl		install-7-mac-static.sh
+	netcdf		install-4.7-parallel-static.sh
+	proj		install-6-static.sh
+	gdal		install-3-static.sh
+	gshhg		install.sh
+	gmt			install-6-mac-static.sh
+	gmsh		install-4-mac-static.sh
+	triangle	install-mac-static.sh
+	chaco		install-mac.sh
+	m1qn3		install.sh
+	semic		install.sh
+	shell2junit	install.sh
+"
+
+#---------#
+# Testing #
+#---------#
+
+# Test suites
+MATLAB_TEST=0
+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=1
+
+# Nightly run options
+#
+# See documentation in test/NightlyRun/runme.* for more information.
+#
+PYTHON_NROPTIONS=""
+MATLAB_NROPTIONS=""
Index: /issm/trunk-jpl/jenkins/ross-debian_linux-binaries-matlab
===================================================================
--- /issm/trunk-jpl/jenkins/ross-debian_linux-binaries-matlab	(revision 27552)
+++ /issm/trunk-jpl/jenkins/ross-debian_linux-binaries-matlab	(revision 27553)
@@ -44,5 +44,5 @@
 	autotools	install-linux.sh
 	cmake		install.sh
-	petsc		install-3.12-linux-static.sh
+	petsc		install-3.14-linux-static.sh
 	gsl			install-static.sh
 	boost		install-1.7-linux-static.sh
Index: /issm/trunk-jpl/jenkins/ross-debian_linux-binaries-python-2
===================================================================
--- /issm/trunk-jpl/jenkins/ross-debian_linux-binaries-python-2	(revision 27552)
+++ /issm/trunk-jpl/jenkins/ross-debian_linux-binaries-python-2	(revision 27553)
@@ -44,5 +44,5 @@
 	autotools	install-linux.sh
 	cmake		install.sh
-	petsc		install-3.12-linux-static.sh
+	petsc		install-3.14-linux-static.sh
 	gsl			install-static.sh
 	boost		install-1.7-linux-static.sh
Index: /issm/trunk-jpl/jenkins/ross-debian_linux-binaries-python-3
===================================================================
--- /issm/trunk-jpl/jenkins/ross-debian_linux-binaries-python-3	(revision 27552)
+++ /issm/trunk-jpl/jenkins/ross-debian_linux-binaries-python-3	(revision 27553)
@@ -45,5 +45,5 @@
 	autotools	install-linux.sh
 	cmake		install.sh
-	petsc		install-3.12-linux-static.sh
+	petsc		install-3.14-linux-static.sh
 	gsl			install-static.sh
 	boost		install-1.7-linux-static.sh
