#!/bin/bash
./config/configure.py \
 --prefix="$ISSM_TIER/externalpackages/petsc/install" \
 --with-mpi-dir=$ISSM_TIER/externalpackages/mpich2/install \
 --with-clanguage=C++ \
 --PETSC_ARCH=linux-gnu-amd64 \
 --PETSC_DIR="$ISSM_TIER/externalpackages/petsc/src" \
 --with-debugging=0 \
 --with-shared-libraries=0 \
 --download-mumps=yes \
 --download-scalapack=yes \
 --download-blacs=yes \
 --download-blas=yes \
 --download-f-blas-lapack=yes \
 --download-plapack=yes \
 --download-parmetis=yes \
 --with-pic=1 \
 --FFLAGS=-I$ISSM_TIER/externalpackages/mpich2/install/include \
 --COPTFLAGS="-march=opteron -O2" \
 --FOPTFLAGS="-march=opteron -O2" \
 --CXXOPTFLAGS="-march=opteron -O2"
