Index: sm/trunk-jpl/externalpackages/petsc/install-3.6-win10.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.6-win10.sh	(revision 25672)
+++ 	(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-aci.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.7-aci.sh	(revision 25672)
+++ 	(revision )
@@ -1,53 +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="/opt/intel/compilers_and_libraries_2016.3.210/linux/mkl/lib/" \
-	--with-mpi-dir="/opt/intel/compilers_and_libraries_2016.3.210/linux/mpi/intel64/" \
-	--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
-#PBS -A open
-#PBS -l nodes=1:ppn=1:stmem
-#PBS -l walltime=200 
-
-module load intel/16.0.3
-module load impi/5.1.3
-module load mkl/11.3.3
-
-export PATH="$PATH:." 
-cd $ISSM_DIR/externalpackages/petsc/src
-mpirun -np 1 ./conftest-arch-linux2-c-opt
-EOF
-
-#print instructions
-echo "== Now: cd src/ "
-echo "== qsub script.queue "
-echo "== Then run reconfigure script generated by PETSc and follow instructions"
Index: sm/trunk-jpl/externalpackages/petsc/install-3.7-discover.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.7-discover.sh	(revision 25672)
+++ 	(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-3.7-greenplanet.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.7-greenplanet.sh	(revision 25672)
+++ 	(revision )
@@ -1,57 +1,0 @@
-#!/bin/bash
-set -eu
-
-#WARNING: make sure you have the right mpi
-
-#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="/sopt/MKL/2018.3/" \
- --with-mpi-dir="/sopt/OpenMPI/3.1.2/intel-2018.3-slim" \
- --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-scalapack=1 \
- --download-mumps=1 \
- --with-pic=1
-
-#prepare script to reconfigure petsc
-cat > script.queue << EOF
-#!/bin/bash
-#SBATCH -p ilg2.3
-#SBATCH -N 1 -n 1
-#SBATCH --mem-per-cpu=1gb
-#SBATCH --time=10
-#SBATCH --job-name=test
-
-module load intel/2018.3
-module load openmpi/3.1.2-slim
-
-cd $(echo $ISSM_DIR)/externalpackages/petsc/src/
-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-3.7-hpc.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.7-hpc.sh	(revision 25672)
+++ 	(revision )
@@ -1,50 +1,0 @@
-#!/bin/bash
-set -eu
-
-#WARNING: make sure you have the right mpi:
-
-#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-mpi-dir="/data/apps/mpi/openmpi-1.8.3/gcc/4.8.3/" \
- --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-scalapack=1 \
- --download-fblaslapack=1 \
- --download-mumps=1 
-
-#prepare script to reconfigure petsc
-cat > script.queue << EOF
-#!/bin/bash
-#$ -N PETSC
-#$ -q free*,pub64
-
-cd $(echo $ISSM_DIR)/externalpackages/petsc/src/
-mpiexec -np 1 ./conftest-arch-linux2-c-opt
-EOF
-
-#print instructions
-echo "== Now: cd src/ "
-echo "== qsub script.queue "
-echo "== Then run reconfigure script generated by PETSc and follow instructions"
Index: sm/trunk-jpl/externalpackages/petsc/install-3.7-linux-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.7-linux-static.sh	(revision 25672)
+++ 	(revision )
@@ -1,58 +1,0 @@
-#!/bin/bash
-set -eu
-
-
-## Constants
-#
-VER="3.7.6"
-
-# 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 install src
-mkdir install src
-
-# Move source to 'src' directory
-mv petsc-${VER}/* src/
-rm -rf petsc-${VER}
-
-# Configure
-#
-# NOTE:
-# - Despite the fact that the with-pic option is used, external packages
-#	require the fPIC compiler flag to be supplied directly to the compilers in
-#	order for position independent code to be generated.
-#
-cd src
-./config/configure.py \
-	--prefix="${ISSM_DIR}/externalpackages/petsc/install" \
-	--PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" \
-	--with-shared-libraries=0 \
-	--with-mpi-dir="${ISSM_DIR}/externalpackages/mpich/install" \
-	--with-blas-lib="-L${ISSM_DIR}/externalpackages/lapack/install/lib -lblas" \
-	--with-lapack-lib="-L${ISSM_DIR}/externalpackages/lapack/install/lib -llapack" \
-	--with-debugging=0 \
-	--with-valgrind=0 \
-	--with-x=0 \
-	--with-ssl=0 \
-	--with-pic=1 \
-	--download-metis=1 \
-	--download-parmetis=1 \
-	--download-scalapack=1 \
-	--download-mumps=1 \
-	--COPTFLAGS="-fPIC" \
-	--CXXOPTFLAGS="-fPIC" \
-	--FOPTFLAGS="-fPIC"
-
-# Compile and install
-if [ $# -eq 0 ]; then
-	make
-	make install
-else
-	make -j $1
-	make -j $1 install
-fi
Index: sm/trunk-jpl/externalpackages/petsc/install-3.7-linux.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.7-linux.sh	(revision 25672)
+++ 	(revision )
@@ -1,54 +1,0 @@
-#!/bin/bash
-set -eu
-
-
-## Constants
-#
-VER="3.7.6"
-
-# 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 install src
-mkdir install src
-
-# Move source to 'src' directory
-mv petsc-$VER/* src/
-rm -rf petsc-$VER
-
-# Configure
-#
-# NOTE:
-# - Despite the fact that the with-pic option is used, external packages
-#	require the fPIC compiler flag to be supplied directly to the compilers in
-#	order for position independent code to be generated.
-#
-cd src
-./config/configure.py \
-	--prefix="${ISSM_DIR}/externalpackages/petsc/install" \
-	--PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" \
-	--with-mpi-dir="${ISSM_DIR}/externalpackages/mpich/install" \
-	--with-blas-lib="-L${ISSM_DIR}/externalpackages/lapack/install/lib -lblas" \
-	--with-lapack-lib="-L${ISSM_DIR}/externalpackages/lapack/install/lib -llapack" \
-	--with-debugging=0 \
-	--with-valgrind=0 \
-	--with-x=0 \
-	--with-ssl=0 \
-	--with-pic=1 \
-	--download-metis=1 \
-	--download-parmetis=1 \
-	--download-scalapack=1 \
-	--download-mumps=1
-
-# Compile and install
-if [ $# -eq 0 ]; then
-	make
-	make install
-else
-	make -j $1
-	make -j $1 install
-fi
Index: sm/trunk-jpl/externalpackages/petsc/install-3.7-linux64-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.7-linux64-static.sh	(revision 25672)
+++ 	(revision )
@@ -1,40 +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" \
-	--with-single-library=1 \
-	--PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
-	--with-shared-libraries=0 \
-	--with-debugging=0 \
-	--with-mpi-dir="$ISSM_DIR/externalpackages/mpich/install" \
-	--download-fblaslapack=1 \
-	--download-metis=1 \
-	--download-parmetis=1 \
-	--with-x=0 \
-	--download-scalapack=1 \
-	--download-mumps=1 \
-	--with-ssl=0 \
-	--with-valgrind=0 \
-	--with-pic=1 \
-	--COPTFLAGS="-fPIC" \
-	--CXXOPTFLAGS="-fPIC" \
-	--FOPTFLAGS="-fPIC"
-
-#Compile and intall
-make
-make install
Index: sm/trunk-jpl/externalpackages/petsc/install-3.7-linux64.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.7-linux64.sh	(revision 25672)
+++ 	(revision )
@@ -1,51 +1,0 @@
-#!/bin/bash
-set -eu
-
-
-## Constants
-#
-VER="3.7.6"
-
-# 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 install src
-mkdir install src
-
-# Move source to 'src' directory
-mv petsc-$VER/* src/
-rm -rf petsc-$VER
-
-# Configure
-cd src
-./config/configure.py \
-	--prefix="${ISSM_DIR}/externalpackages/petsc/install" \
-	--PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" \
-	--with-mpi-dir="${ISSM_DIR}/externalpackages/mpich/install" \
-	--with-blas-lib="-L${ISSM_DIR}/externalpackages/lapack/install/lib -lblas" \
-	--with-lapack-lib="-L${ISSM_DIR}/externalpackages/lapack/install/lib -llapack" \
-	--with-debugging=0 \
-	--with-valgrind=0 \
-	--with-x=0 \
-	--with-ssl=0 \
-	--with-shared-libraries=1 \
-	--download-metis=1 \
-	--download-parmetis=1 \
-	--download-scalapack=1 \
-	--download-mumps=1
-
-# Compile and install
-if [ $# -eq 0 ]; then
-	make
-	make install
-else
-	make -j $1
-	make -j $1 install
-fi
-
-# Return to initial directory
-cd ..
Index: sm/trunk-jpl/externalpackages/petsc/install-3.7-mac-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.7-mac-static.sh	(revision 25672)
+++ 	(revision )
@@ -1,40 +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 'http://issm.jpl.nasa.gov/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" \
-	--with-single-library=1 \
-	--PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
-	--with-shared-libraries=0 \
-	--with-debugging=0 \
-	--with-mpi-dir="$ISSM_DIR/externalpackages/mpich/install" \
-	--download-fblaslapack=1 \
-	--download-metis=1 \
-	--download-parmetis=1 \
-	--with-x=0 \
-	--download-scalapack=1 \
-	--download-mumps=1 \
-	--with-ssl=0 \
-	--with-valgrind=0 \
-	--with-pic=1 \
-	--COPTFLAGS="-fPIC" \
-	--CXXOPTFLAGS="-fPIC" \
-	--FOPTFLAGS="-fPIC"
-
-#Compile and intall
-make
-make install
Index: sm/trunk-jpl/externalpackages/petsc/install-3.7-mac.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.7-mac.sh	(revision 25672)
+++ 	(revision )
@@ -1,46 +1,0 @@
-#!/bin/bash
-set -eu
-
-
-## Constants
-#
-VER="3.7.6"
-
-# 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 install src
-mkdir install src
-
-# Move source to 'src' directory
-mv petsc-${VER}/* src/
-rm -rf petsc-${VER}
-
-# Configure
-cd src
-./config/configure.py \
-	--prefix="${ISSM_DIR}/externalpackages/petsc/install" \
-	--PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" \
-	--with-mpi-dir="${ISSM_DIR}/externalpackages/mpich/install" \
-	--with-debugging=0 \
-	--with-valgrind=0 \
-	--with-x=0 \
-	--with-ssl=0 \
-	--with-shared-libraries=1 \
-	--download-metis=1 \
-	--download-parmetis=1 \
-	--download-scalapack=1 \
-	--download-mumps=1
-
-# Compile and install
-if [ $# -eq 0 ]; then
-	make
-	make install
-else
-	make -j $1
-	make -j $1 install
-fi
Index: sm/trunk-jpl/externalpackages/petsc/install-3.7-pleiades.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.7-pleiades.sh	(revision 25672)
+++ 	(revision )
@@ -1,56 +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-cc=icc --with-cxx=icpc --with-fc=ifort --with-f77=ifort \
-	--with-blas-lapack-dir="/nasa/intel/Compiler/2016.2.181/compilers_and_libraries_2016.2.181/linux/mkl/" \
-	--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
-#PBS -S /bin/bash
-#PBS -l select=1:ncpus=1:model=bro
-#PBS -l walltime=200 
-#PBS -W group_list=s1690
-#PBS -m e 
-
-. /usr/share/modules/init/bash 
-module load pkgsrc
-module load comp-intel/2016.2.181
-module load mpi-sgi/mpt
-
-export PATH="$PATH:." 
-export MPI_GROUP_MAX=64 
-mpiexec -np 1 ./conftest-arch-linux2-c-opt
-EOF
-
-#print instructions
-echo "== Now: cd src/ "
-echo "== qsub -q devel script.queue "
-echo "== Then run reconfigure script generated by PETSc and follow instructions"
Index: sm/trunk-jpl/externalpackages/petsc/install-3.8-linux64.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.8-linux64.sh	(revision 25672)
+++ 	(revision )
@@ -1,36 +1,0 @@
-#!/bin/bash
-set -eu
-
-#Some cleanup
-rm -rf install petsc-3.8.3 src
-mkdir install src
-
-#Download from ISSM server
-$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/petsc-lite-3.8.3.tar.gz' 'petsc-3.8.3.tar.gz'
-
-#Untar and move petsc to install directory
-tar -zxvf  petsc-3.8.3.tar.gz
-mv petsc-3.8.3/* src/
-rm -rf petsc-3.8.3
-
-#configure
-cd src
-./config/configure.py \
-	--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
-
-#Compile and intall
-make
-make install
Index: sm/trunk-jpl/externalpackages/petsc/install-3.8-macosx64.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.8-macosx64.sh	(revision 25672)
+++ 	(revision )
@@ -1,34 +1,0 @@
-#!/bin/bash
-set -eu
-
-#Some cleanup
-rm -rf install petsc-3.8.3 src
-mkdir install src
-
-#Download from ISSM server
-$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/petsc-lite-3.8.3.tar.gz' 'petsc-3.8.3.tar.gz'
-
-#Untar and move petsc to install directory
-tar -zxvf  petsc-3.8.3.tar.gz
-mv petsc-3.8.3/* src/
-rm -rf petsc-3.8.3
-
-#configure
-cd src
-./config/configure.py \
-	--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
-
-#Compile and intall
-make
-make install
Index: sm/trunk-jpl/externalpackages/petsc/install-3.9-aurora.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.9-aurora.sh	(revision 25672)
+++ 	(revision )
@@ -1,58 +1,0 @@
-#!/bin/bash
-set -eu
-
-#Some cleanup
-#rm -rf install petsc-3.9.3 src
-#mkdir install src
-#
-##Download from ISSM server
-#$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/petsc-lite-3.9.3.tar.gz' 'petsc-3.9.3.tar.gz'
-#
-##Untar and move petsc to install directory
-#tar -zxvf  petsc-3.9.3.tar.gz
-#mv petsc-3.9.3/* src/
-#rm -rf petsc-3.9.3
-
-#configure
-cd src
-./config/configure.py \
-	--prefix="$ISSM_DIR/externalpackages/petsc/install" \
-	--PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
-	--with-blas-lapack-dir="/opt/intel/composer_xe_2013.5.192/mkl/lib/intel64/" \
-	--with-mpi-dir="/opt/intel/impi/4.1.3/intel64/" \
-	--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 \
-	--known-64-bit-blas-indices \
-	--COPTFLAGS="-O3" \
-	--FOPTFLAGS="-O3" \
-	--CXXOPTFLAGS="-O3"
-
-#prepare script to reconfigure petsc
-cat > script.queue << EOF
-#PBS -S /bin/bash
-#PBS -l select=1:ncpus=1:mpiprocs=1 
-#PBS -l walltime=0:00:59
-#PBS -m e
-
-source /usr/share/Modules/init/bash
-module load intel/cluster-toolkit-2013.5.192
-
-export PATH="$PATH:.:/opt/intel/impi/4.1.3/intel64/bin/"
-export MPI_GROUP_MAX=64
-cd $ISSM_DIR/externalpackages/petsc/src/
-mpirun -np 1 ./conftest-arch-linux2-c-opt
-EOF
-
-#print instructions
-echo "== Now: cd src/ "
-echo "== qsub -q debugq script.queue "
-echo "== Then run reconfigure script generated by PETSc and follow instructions"
Index: sm/trunk-jpl/externalpackages/petsc/install-3.9-linux64.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.9-linux64.sh	(revision 25672)
+++ 	(revision )
@@ -1,36 +1,0 @@
-#!/bin/bash
-set -eu
-
-#Some cleanup
-rm -rf install petsc-3.9.3 src
-mkdir install src
-
-#Download from ISSM server
-$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/petsc-lite-3.9.3.tar.gz' 'petsc-3.9.3.tar.gz'
-
-#Untar and move petsc to install directory
-tar -zxvf  petsc-3.9.3.tar.gz
-mv petsc-3.9.3/* src/
-rm -rf petsc-3.9.3
-
-#configure
-cd src
-./config/configure.py \
-	--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
-
-#Compile and intall
-make
-make install
Index: sm/trunk-jpl/externalpackages/petsc/install-3.9-macosx64.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.9-macosx64.sh	(revision 25672)
+++ 	(revision )
@@ -1,34 +1,0 @@
-#!/bin/bash
-set -eu
-
-#Some cleanup
-rm -rf install petsc-3.9.3 src
-mkdir install src
-
-#Download from ISSM server
-$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/petsc-lite-3.9.3.tar.gz' 'petsc-3.9.3.tar.gz'
-
-#Untar and move petsc to install directory
-tar -zxvf  petsc-3.9.3.tar.gz
-mv petsc-3.9.3/* src/
-rm -rf petsc-3.9.3
-
-#configure
-cd src
-./config/configure.py \
-	--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
-
-#Compile and intall
-make
-make install
Index: sm/trunk-jpl/externalpackages/petsc/install-3.9-sherlock.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/petsc/install-3.9-sherlock.sh	(revision 25672)
+++ 	(revision )
@@ -1,36 +1,0 @@
-#!/bin/bash
-set -eu
-
-#Some cleanup
-rm -rf install petsc-3.9.3 src
-mkdir install src
-
-#Download from ISSM server
-$ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/petsc-lite-3.9.3.tar.gz' 'petsc-3.9.3.tar.gz'
-
-#Untar and move petsc to install directory
-tar -zxvf  petsc-3.9.3.tar.gz
-mv petsc-3.9.3/* src/
-rm -rf petsc-3.9.3
-
-#configure
-cd src
-./config/configure.py \
-	--prefix="$ISSM_DIR/externalpackages/petsc/install" \
-	--with-mpi-dir="/share/software/user/restricted/impi/2019/impi/2019.0.117/intel64/" \
-	--with-blas-lapack-dir="/share/software/user/restricted/imkl/2019/mkl/lib/intel64/" \
-	--PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
-	--with-debugging=1 \
-	--with-valgrind=0 \
-	--with-x=0 \
-	--with-ssl=0 \
-	--with-shared-libraries=1 \
-	--download-scalapack=1 \
-	--download-metis=1 \
-	--download-parmetis=1 \
-	--download-mumps=1 \
-	--with-pic=1
-
-#Compile and intall
-make
-make install
