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

#Compatible with PETSc 3.2

#Some cleanup
rm -rf install tao-2.0-p3
mkdir install

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

#Untar 
tar -zxvf  tao-2.0-p3.tar.gz

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

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