]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Simplify a test for PETSc libraries
authoryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 27 Sep 2011 07:43:37 +0000 (07:43 +0000)
committeryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 27 Sep 2011 07:43:37 +0000 (07:43 +0000)
git-svn-id: https://svn.dealii.org/trunk@24448 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/common/Make.global_options.in

index 6c82ef56ea6e69c9ce28fd4ded57b357d2b65c56..98a333ad1b7fb7f024e6fafbf6019f52a74d207b 100644 (file)
@@ -174,7 +174,7 @@ ifeq ($(USE_CONTRIB_PETSC),yes)
         lib-contrib-petsc.g = $(shell echo $(DEAL_II_PETSC_DIR)/lib/$(DEAL_II_PETSC_ARCH)/*$(lib-suffix))
         lib-contrib-petsc.o = $(shell echo $(DEAL_II_PETSC_DIR)/lib/$(DEAL_II_PETSC_ARCH)/*$(lib-suffix))
       else
-        # which is the same for PETSc 3.0.0:
+        # which is the similar as for PETSc 3.0.0:
         ifeq ($(DEAL_II_PETSC_VERSION_MAJOR)$(DEAL_II_PETSC_VERSION_MINOR),30)
           lib-contrib-petsc.g = $(shell echo $(DEAL_II_PETSC_DIR)/$(DEAL_II_PETSC_ARCH)/lib/*$(lib-suffix))
           lib-contrib-petsc.o = $(shell echo $(DEAL_II_PETSC_DIR)/$(DEAL_II_PETSC_ARCH)/lib/*$(lib-suffix))
@@ -306,10 +306,8 @@ 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_MAJOR),2)
-    ifeq ($(DEAL_II_PETSC_VERSION_MINOR),2)
-      include $(DEAL_II_PETSC_DIR)/bmake/$(DEAL_II_PETSC_ARCH)/packages
-    endif
+  ifeq ($(DEAL_II_PETSC_VERSION_MAJOR)$(DEAL_II_PETSC_VERSION_MINOR),22)
+    include $(DEAL_II_PETSC_DIR)/bmake/$(DEAL_II_PETSC_ARCH)/packages
   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.