From 48d4e180bbdb4313d2474385e85380f51c1c3340 Mon Sep 17 00:00:00 2001 From: young Date: Thu, 2 Dec 2010 11:03:21 +0000 Subject: [PATCH] Fix bug in mpi consistency for PETSc 2.3.x git-svn-id: https://svn.dealii.org/trunk@22900 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/aclocal.m4 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index 05bde9760c..4b8b973f45 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -5756,9 +5756,23 @@ AC_DEFUN(DEAL_II_CHECK_PETSC_MPI_CONSISTENCY, dnl dnl about is stored in the PCC (PCC_LINKER) flags. So we just check that dnl this valus is the same as the corresponding value for the C/C++ dnl compiler that deal.II knows about. - DEAL_II_PETSC_PCC=`cat $DEAL_II_PETSC_DIR/$DEAL_II_PETSC_ARCH/conf/petscvariables \ + case "${DEAL_II_PETSC_VERSION_MAJOR}.${DEAL_II_PETSC_VERSION_MINOR}.${DEAL_II_PETSC_VERSION_SUBMINOR}" in + 2.3*) dnl + DEAL_II_PETSC_PCC=`cat $DEAL_II_PETSC_DIR/bmake/$DEAL_II_PETSC_ARCH/petscconf \ + | grep "PCC = " \ + | perl -pi -e 's/.*PCC\s=\s+//g;'` + ;; + 3.*) dnl + DEAL_II_PETSC_PCC=`cat $DEAL_II_PETSC_DIR/$DEAL_II_PETSC_ARCH/conf/petscvariables \ | grep "PCC = " \ | perl -pi -e 's/.*PCC\s=\s+//g;'` + + ;; + *) dnl + AC_MSG_ERROR([Unknown PETSc version ${DEAL_II_PETSC_VERSION_MAJOR}.${DEAL_II_PETSC_VERSION_MINOR}.${DEAL_II_PETSC_VERSION_SUBMINOR}]) + ;; + esac + DEAL_II_PETSC_PCC+=" " dnl Add a trailing whitespace case "$DEAL_II_PETSC_LANGUAGE" in -- 2.39.5