#!/bin/sh

./configure \
 --prefix=$ISSM_DIR \
 --with-serial=no\
 --with-metis-dir=$ISSM_DIR/externalpackages/metis/install \
 --with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install \
 --with-mpi-include=$ISSM_DIR/externalpackages/mpich2/install/include  \
 --with-mpi-lib="-L$ISSM_DIR/externalpackages/mpich2/install/lib/ -lmpich" \
 --with-petsc-arch=$ISSM_ARCH \
 --with-blas-lapack-dir=$ISSM_DIR/externalpackages/petsc/install \
 --with-plapack-lib="-L$ISSM_DIR/externalpackages/petsc/install/ -lPLAPACK" \
 --with-plapack-include="-I$ISSM_DIR/externalpackages/petsc/install/externalpackages/PLAPACKR32-hg/INCLUDE" \
 --with-blacs-dir=$ISSM_DIR/externalpackages/petsc/install/ \
 --with-scalapack-dir=$ISSM_DIR/externalpackages/petsc/install/ \
 --with-hypre-dir=$ISSM_DIR/externalpackages/petsc/install/ \
 --with-ml-dir=$ISSM_DIR/externalpackages/petsc/install/ \
 --with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install/ \
 --with-graphics-lib=/usr/lib64/libX11.so \
 --with-cxxoptflags="-mtune=barcelona -ffast-math -O3 -msse4.2 -Wno-write-strings "\
 --with-fortran-lib="-L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/ -lg2c  /usr/lib/gcc/x86_64-redhat-linux/4.1.1/libgfortran.a" \
 --with-adic2-dir=$ISSM_DIR/externalpackages/adic/install/ \
--with-numthreads=24 \
 --without-thermal \
 --without-control \
 --without-hydrology \
 --without-diagnostic \
 --without-balanced \
 --without-responses \
 --without-slope \
 --without-rifts \
 --without-steadystate \
 --without-transient \
 --without-3d \
 --without-groundingline
 
#--without-prognostic \
