diff --git a/packages/numlib/petsc/petsc-3.3-p5 b/packages/numlib/petsc/petsc-3.3-p5 new file mode 100755 index 0000000..a93d51c --- /dev/null +++ b/packages/numlib/petsc/petsc-3.3-p5 @@ -0,0 +1,47 @@ +#!/bin/sh +# sit class file +# +# Christoph Niethammer (C) 2012 +# + +CATEGORY="numlib" +PACKAGE="petsc" +VERSION="3.3-p5" +URL="http://www.mcs.anl.gov/petsc/" +INSTALLER="Christoph Niethammer " + +# 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 +}