#!/bin/csh

#PETSc 3.2
#MPI /sopt/mpi/openmpi-1.5.4_psm/intel

./configure \
 --prefix=$ISSM_TIER \
 --with-serial=no \
 --with-triangle-dir=$ISSM_TIER/externalpackages/triangle/install \
 --with-metis-dir=$ISSM_TIER/externalpackages/metis/install \
 --with-petsc-dir=$ISSM_TIER/externalpackages/petsc/install \
 --with-mpi-include="/sopt/mpi/openmpi-1.5.4_psm/intel/include/" \
 --with-mpi-lib="-L/sopt/mpi/openmpi-1.5.4_psm/intel/lib/ -lmpi -lmpi_f77" \
 --with-petsc-arch=$ISSM_ARCH \
 --with-dakota-dir=$ISSM_TIER/externalpackages/dakota/install \
 --with-mkl-dir=/opt/intel/mkl/10.2.4.032/ \
 --with-plapack-lib="-L$ISSM_TIER/externalpackages/petsc/install/ -lPLAPACK" \
 --with-plapack-include="-I$ISSM_TIER/externalpackages/petsc/install/externalpackages/PLAPACKR32-hg/INCLUDE" \
 --with-mumps-dir=$ISSM_TIER/externalpackages/petsc/install/ \
 --with-scalapack-dir=$ISSM_TIER/externalpackages/petsc/install/ \
 --with-blacs-dir=$ISSM_TIER/externalpackages/petsc/install/ \
 --with-graphics-lib=/usr/lib64/libX11.so \
 --with-cxxoptflags="-O3 -xS" \
 --with-vendor=intel-linux
