]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Also commit configure.in.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 25 Feb 2010 15:47:56 +0000 (15:47 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 25 Feb 2010 15:47:56 +0000 (15:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@20695 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/configure.in

index 1f1dece019703534075aca6f6449446f9026d26c..a752aa6b7e822473db6c00eed482417d796c4a6f 100644 (file)
@@ -686,6 +686,26 @@ AH_BOTTOM(
 #  define DEAL_VOLATILE
 #endif
 
+
+/**
+ * Have macros that should make testing for PETSc versions
+ * much simpler.
+ */
+#define DEAL_II_PETSC_VERSION_LT(major,minor,subminor) \
+  ((PETSC_VERSION_MAJOR * 10000 + \
+    PETSC_VERSION_MINOR * 100) + \
+    PETSC_VERSION_SUBMINOR \
+    <  \
+    major*10000 + minor*100 + subminor)
+
+#define DEAL_II_PETSC_VERSION_GE(major,minor,subminor) \
+  ((PETSC_VERSION_MAJOR * 10000 + \
+    PETSC_VERSION_MINOR * 100) + \
+    PETSC_VERSION_SUBMINOR \
+    >=  \
+    (major)*10000 + (minor)*100 + (subminor))
+
+
 #include <base/numbers.h>
 
 /**

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.