Sit class file for PETSC 3.3-p5.
This commit is contained in:
parent
08212fbf06
commit
21c56d8cc1
1 changed files with 47 additions and 0 deletions
47
packages/numlib/petsc/petsc-3.3-p5
Executable file
47
packages/numlib/petsc/petsc-3.3-p5
Executable 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
|
||||||
|
}
|
Loading…
Reference in a new issue