#!/bin/bash
#http://www.mcs.anl.gov/research/projects/tao/download/index.html

#compatible with PETSc 3.3

#Some cleanup
rm -rf install tao-2.1-p0
mkdir install

#Download from ISSM server
$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/tao-2.1-p0.tar.gz' 'tao-2.1-p0.tar.gz'

#Untar 
tar -zxvf  tao-2.1-p0.tar.gz

#move into place
mv tao-2.1-p0/* install/
rm -rf tao-2.1-p0
cd install
export TAO_DIR="$ISSM_DIR/externalpackages/tao/install/"

#petsc needs to be compiled with --with-clanguage=C++
make
