]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix bug in mpi consistency for PETSc 2.3.x
authoryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 2 Dec 2010 10:48:05 +0000 (10:48 +0000)
committeryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 2 Dec 2010 10:48:05 +0000 (10:48 +0000)
git-svn-id: https://svn.dealii.org/trunk@22899 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4

index 6f8b2c0f5b78c68081f0ab503d168fc9ffd49efd..05bde9760cd14b6c55a606f8d81028aa4ea6bd77 100644 (file)
@@ -5720,9 +5720,21 @@ AC_DEFUN(DEAL_II_CHECK_PETSC_MPI_CONSISTENCY, dnl
   dnl First, get PETSc's language type
   AC_MSG_CHECKING([for PETSc library language])
 
-  DEAL_II_PETSC_LANGUAGE=`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_LANGUAGE=`cat $DEAL_II_PETSC_DIR/bmake/$DEAL_II_PETSC_ARCH/petscconf \
+                              | grep "PETSC_LANGUAGE = " \
+                              | perl -pi -e 's/.*LANGUAGE\s=\s+//g;'`
+      ;;
+    3.*) dnl
+      DEAL_II_PETSC_LANGUAGE=`cat $DEAL_II_PETSC_DIR/$DEAL_II_PETSC_ARCH/conf/petscvariables \
                               | grep "PETSC_LANGUAGE = " \
                               | perl -pi -e 's/.*LANGUAGE\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
 
   dnl ...and pretty print that.
   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.