Sit class file for PETSC 3.3-p5.

This commit is contained in:
Christoph Niethammer 2012-12-17 10:50:15 +00:00
parent 08212fbf06
commit 21c56d8cc1

View file

@ -0,0 +1,47 @@
#!/bin/sh
# sit class file
#
# Christoph Niethammer <niethammer@hlrs.de> (C) 2012
#
CATEGORY="numlib"
PACKAGE="petsc"
VERSION="3.3-p5"
URL="http://www.mcs.anl.gov/petsc/"
INSTALLER="Christoph Niethammer <niethammer@hlrs.de>"
# Archive A and package name P
A=${PACKAGE}-${VERSION}.tar.gz
P=${PACKAGE}-${VERSION}
case $COMPILER in
gnu)
ARCH=linux-gnu
;;
intel)
ARCH=linux-gnu-intel
;;
esac
BUILDDIR=$SRCDIR
# Other interesting configure options:
# --enable-mpi-threads
# --enable-progress-threads
CONFIGURE_OPTS="
--CC=$MPICC --CXX=$MPICXX --FC=$MPIFC \
PETSC_ARCH=$ARCH \
--download-f-blas-lapack=$SRC_POOL/fblaslapack-3.1.1.tar.gz \
--with-scalar-type=complex \
--with-clanguage=cxx \
--with-fortran-kernels=generic \
"
if [[ -d /opt/voltaire/fca ]]; then
echo "Voltaire FCA found"
sit_info "Enabling Voltaire FCA (/opt/voltaire/fca)"
CONFIGURE_OPTS+=" --with-fca=/opt/voltaire/fca"
fi
src_pretest() {
make PETSC_DIR=$SRCDIR PETSC_ARCH=$ARCH test
}