Index: ../trunk-jpl/externalpackages/mpich/install-3.0-linux64-static.sh
===================================================================
--- ../trunk-jpl/externalpackages/mpich/install-3.0-linux64-static.sh	(revision 0)
+++ ../trunk-jpl/externalpackages/mpich/install-3.0-linux64-static.sh	(revision 18438)
@@ -0,0 +1,29 @@
+#!/bin/bash
+set -eu
+
+#Some cleanup
+rm -rf src install mpich-3.0.4
+mkdir src install
+
+#Download from ISSM server
+$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/mpich-3.0.4.tar.gz' 'mpich-3.0.4.tar.gz'
+
+#Untar 
+tar -zxvf  mpich-3.0.4.tar.gz
+
+#Move mpich into src directory
+mv mpich-3.0.4/* src
+rm -rf mpich-3.0.4
+
+#Configure mpich
+cd src
+./configure \
+	--prefix="$ISSM_DIR/externalpackages/mpich/install" 
+
+#Compile mpich (this new version supports parallel make)
+if [ $# -eq 0 ]; then
+	make
+else
+	make -j $1
+fi
+make install 

Property changes on: ../trunk-jpl/externalpackages/mpich/install-3.0-linux64-static.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: ../trunk-jpl/externalpackages/petsc/install-3.5-linux64-static.sh
===================================================================
--- ../trunk-jpl/externalpackages/petsc/install-3.5-linux64-static.sh	(revision 18437)
+++ ../trunk-jpl/externalpackages/petsc/install-3.5-linux64-static.sh	(revision 18438)
@@ -18,12 +18,12 @@
 ./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=0 \
-	--download-mpich=1 \
 	--download-metis=1 \
 	--download-parmetis=1 \
 	--download-mumps=1 \
Index: ../trunk-jpl/externalpackages/petsc/install-3.5-macosx64-static.sh
===================================================================
--- ../trunk-jpl/externalpackages/petsc/install-3.5-macosx64-static.sh	(revision 18437)
+++ ../trunk-jpl/externalpackages/petsc/install-3.5-macosx64-static.sh	(revision 18438)
@@ -17,8 +17,8 @@
 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" \
-	--PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
 	--with-debugging=0 \
 	--with-valgrind=0 \
 	--with-ssl=0 \
Index: ../trunk-jpl/packagers/ubuntu/install.sh
===================================================================
--- ../trunk-jpl/packagers/ubuntu/install.sh	(revision 18437)
+++ ../trunk-jpl/packagers/ubuntu/install.sh	(revision 18438)
@@ -25,6 +25,7 @@
 
 #List of external pakages to be installed and their installation scripts
 EXTERNALPACKAGES="autotools install.sh                
+						mpich     install-3.0-linux64-static.sh
                   cmake     install.sh                
                   petsc     install-3.5-linux64-static.sh
                   triangle  install-linux64.sh "
