Index: ../trunk-jpl/externalpackages/petsc/install-3.5-hpc.sh
===================================================================
--- ../trunk-jpl/externalpackages/petsc/install-3.5-hpc.sh	(revision 0)
+++ ../trunk-jpl/externalpackages/petsc/install-3.5-hpc.sh	(revision 18690)
@@ -0,0 +1,52 @@
+#!/bin/bash
+set -eu
+
+#WARNING: make sure you have the right mpi:
+#mpi-selector --query
+#default:openmpi_intel-1.5.4_psm
+
+#Some cleanup
+rm -rf install petsc-3.5.2 src
+mkdir install src
+
+#Download from ISSM server
+$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/petsc-lite-3.5.2.tar.gz' 'petsc-3.5.2.tar.gz'
+
+#Untar and move petsc to install directory
+tar -zxvf  petsc-3.5.2.tar.gz
+mv petsc-3.5.2/* src/
+rm -rf petsc-3.5.2
+
+#configure
+cd src
+./config/configure.py \
+ --prefix="$ISSM_DIR/externalpackages/petsc/install" \
+ --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
+ --with-mpi-dir="/opt/mpich2/gnu/" \
+ --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"

Property changes on: ../trunk-jpl/externalpackages/petsc/install-3.5-hpc.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
