From a39084cb49bdfb00cb7d765bbf481c7ad09b68d3 Mon Sep 17 00:00:00 2001 From: Elke Flehmig Date: Wed, 20 Mar 2013 11:30:00 +0000 Subject: [PATCH] sit script for latest petsc 3.3-p6, for both impi/intel and openmpi/gnu configurations --- packages/numlib/petsc/petsc-3.3-p6 | 51 ++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100755 packages/numlib/petsc/petsc-3.3-p6 diff --git a/packages/numlib/petsc/petsc-3.3-p6 b/packages/numlib/petsc/petsc-3.3-p6 new file mode 100755 index 0000000..92c585f --- /dev/null +++ b/packages/numlib/petsc/petsc-3.3-p6 @@ -0,0 +1,51 @@ +#!/bin/sh +# sit class file +# +# Christoph Niethammer (C) 2012 +# + +CATEGORY="numlib" +PACKAGE="petsc" +VERSION="3.3-p6" +URL="http://www.mcs.anl.gov/petsc/" +INSTALLER="Elke Flehmig " + +# Archive A and package name P +A=${PACKAGE}-${VERSION}.tar.gz +P=${PACKAGE}-${VERSION} + + +# our petsc default config: 32bit real double precision +# blas_lapack: with intel compiler, use intel's mkl instead +case $COMPILER in + gnu) + ARCH=linux-gnu + BLAS_LAPACK="--download-f-blas-lapack=$SRC_POOL/fblaslapack-3.1.1.tar.gz" + ;; + intel) + ARCH=linux-gnu-intel + module load numlib/intel/mkl/11.0 + BLAS_LAPACK="--with-blas-lapack-dir=/opt/compiler/intel/composer_xe_2013-2-146/composer_xe_2013/mkl/lib/intel64" + ;; +esac + +# Other interesting configure options: +# --enable-mpi-threads +# --enable-progress-threads +CONFIGURE_OPTS=" + --CC=$MPICC --CXX=$MPICXX --FC=$MPIFC \ + --with-mpiexec=mpirun \ + PETSC_ARCH=$ARCH \ + --with-clanguage=cxx \ + --with-fortran-datatypes=1 \ + $BLAS_LAPACK \ + " + +BUILDDIR=$SRCDIR + +src_prepare() { + export PETSC_DIR=${SRCDIR} +} +src_pretest() { + make PETSC_DIR=$SRCDIR PETSC_ARCH=$ARCH test +}