2012-12-17 10:50:15 +00:00
|
|
|
#!/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 \
|
2012-12-17 12:09:09 +00:00
|
|
|
--with-mpiexec=mpirun \
|
2012-12-17 10:50:15 +00:00
|
|
|
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 \
|
|
|
|
"
|
|
|
|
|
|
|
|
src_pretest() {
|
|
|
|
make PETSC_DIR=$SRCDIR PETSC_ARCH=$ARCH test
|
|
|
|
}
|