]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix bug in mpi consistency for PETSc 2.3.x
authorToby D. Young <tyoung@ippt.pan.pl>
Thu, 2 Dec 2010 11:03:21 +0000 (11:03 +0000)
committerToby D. Young <tyoung@ippt.pan.pl>
Thu, 2 Dec 2010 11:03:21 +0000 (11:03 +0000)
git-svn-id: https://svn.dealii.org/trunk@22900 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4

index 05bde9760cd14b6c55a606f8d81028aa4ea6bd77..4b8b973f455138ff0ce9b79ef005f648f7ce04b3 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.