]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix weird bug detecting PETSc 3.2 version numbers
authorToby D. Young <tyoung@ippt.pan.pl>
Tue, 13 Sep 2011 09:08:36 +0000 (09:08 +0000)
committerToby D. Young <tyoung@ippt.pan.pl>
Tue, 13 Sep 2011 09:08:36 +0000 (09:08 +0000)
git-svn-id: https://svn.dealii.org/trunk@24319 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4
deal.II/common/Make.global_options.in

index de0e5cd067eb5f0eb801569211313f22b34fc7d4..2589e7eb201ab4c3f5e9ce23c1f84acb27c65aab 100644 (file)
@@ -5829,7 +5829,7 @@ AC_DEFUN(DEAL_II_CHECK_PETSC_MPI_CONSISTENCY, dnl
   dnl
   dnl Like always, we have to cake care of version control!
     case "${DEAL_II_PETSC_VERSION_MAJOR}.${DEAL_II_PETSC_VERSION_MINOR}.${DEAL_II_PETSC_VERSION_SUBMINOR}" in
-      2.3*) dnl
+      2.3.*) dnl
         AC_TRY_COMPILE(
         [#include "$DEAL_II_PETSC_DIR/bmake/$DEAL_II_PETSC_ARCH/petscconf.h"
         ],
index c2537970467178835f81c447be0294764df79b22..6c82ef56ea6e69c9ce28fd4ded57b357d2b65c56 100644 (file)
@@ -306,8 +306,10 @@ INCLUDE = -I$D/include \
 #
 # also, note that this only works for PETSc before 2.3 :-]
 ifeq ($(USE_CONTRIB_PETSC),yes)
-  ifeq ($(DEAL_II_PETSC_VERSION_MINOR),2)
-    include $(DEAL_II_PETSC_DIR)/bmake/$(DEAL_II_PETSC_ARCH)/packages
+  ifeq ($(DEAL_II_PETSC_VERSION_MAJOR),2)
+    ifeq ($(DEAL_II_PETSC_VERSION_MINOR),2)
+      include $(DEAL_II_PETSC_DIR)/bmake/$(DEAL_II_PETSC_ARCH)/packages
+    endif
   endif
   INCLUDE += -I$(include-path-petsc) -I$(include-path-petsc-bmake)\
              $(MPI_INCLUDE)

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.