From 444a4053055e42db912b2bacb36ff97afd98e8ab Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Mon, 25 Apr 2016 12:08:30 +0100 Subject: [PATCH] update PETSc - update to 3.6.4 - use light package - add mumps - add parmetis/scalapack needed for mumps --- deal.II-toolchain/packages/petsc.package | 26 ++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/deal.II-toolchain/packages/petsc.package b/deal.II-toolchain/packages/petsc.package index 223a466..7a9790f 100644 --- a/deal.II-toolchain/packages/petsc.package +++ b/deal.II-toolchain/packages/petsc.package @@ -1,14 +1,14 @@ -VERSION=3.6.3 +VERSION=3.6.4 +CHECKSUM=e7a5253621253eef8f5a19ddc03dd0d4 -NAME=petsc-${VERSION} +NAME=petsc-lite-${VERSION} SOURCE=http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/ PACKING=.tar.gz -CHECKSUM=91dd3522de5a5ef039ff8f50800db606 - +EXTRACTSTO=petsc-${VERSION} BUILDCHAIN=custom -INSTALL_PATH=${INSTALL_PATH}/${NAME} +INSTALL_PATH=${INSTALL_PATH}/${EXTRACTSTO} ######################################################################### @@ -17,6 +17,7 @@ CONFOPTS=" --with-shared-libraries=1 --with-mpi=1 --with-x=0 + --with-64-bit-indices=0 " for external_pkg in hypre; do @@ -49,6 +50,19 @@ if [ ! -z "${MKL_DIR}" ]; then CONFOPTS="${CONFOPTS} --with-blas-lapack-dir=${MKL_DIR}" fi +# Add ParMETIS, if present +if [ ! -z "${PARMETIS_DIR}" ]; then + cecho ${INFO} "PETSc: configuration with ParMETIS" + CONFOPTS="\ + ${CONFOPTS} \ + --with-parmetis-dir=${PARMETIS_DIR} \ + --with-metis-dir=${PARMETIS_DIR}" + + for external_pkg in scalapack mumps; do + CONFOPTS="${CONFOPTS} --download-${external_pkg}=1" + done +fi + ######################################################################### package_specific_setup () { @@ -68,7 +82,7 @@ package_specific_register () { package_specific_conf () { # Generate configuration file - CONFIG_FILE=${CONFIGURATION_PATH}/${NAME} + CONFIG_FILE=${CONFIGURATION_PATH}/${EXTRACTSTO} rm -f $CONFIG_FILE echo " export PETSC_DIR=${INSTALL_PATH} -- 2.39.5