]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Function check for PETSc dev - looks like version checks
authoryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 6 Sep 2011 07:39:06 +0000 (07:39 +0000)
committeryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 6 Sep 2011 07:39:06 +0000 (07:39 +0000)
git-svn-id: https://svn.dealii.org/trunk@24255 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/configure.in
deal.II/include/deal.II/base/config.h.in

index f30e6a34631baca1124d321e2e30531ef9e3e19e..cd1ca524b411d22ac48ce35fc08a4016068a5943 100644 (file)
@@ -463,6 +463,7 @@ AC_SUBST(DEAL_II_PETSC_ARCH)
 AC_SUBST(DEAL_II_PETSC_VERSION_MAJOR)
 AC_SUBST(DEAL_II_PETSC_VERSION_MINOR)
 AC_SUBST(DEAL_II_PETSC_VERSION_SUBMINOR)
+AC_SUBST(USE_PETSC_DEV)
 AC_SUBST(DEAL_II_PETSC_MPIUNI_LIB)
 AC_SUBST(DEAL_II_DEFINE_DEAL_II_USE_PETSC)
 
@@ -849,6 +850,9 @@ AH_BOTTOM(
     >=  \
     (major)*10000 + (minor)*100 + (subminor))
 
+#define DEAL_II_PETSC_VERSION_DEV() \
+  (DEAL_II_USE_PETSC_DEV)
+
 #include <deal.II/base/numbers.h>
 #include <deal.II/base/types.h>
 
index d295d45f6a8bd8d3e8836fc70829c156d800edc0..72a9cda704eace1206480e63dae371a0e354368e 100644 (file)
    going to be used */
 #undef DEAL_II_USE_PETSC_COMPLEX
 
+/* Defined if a PETSc installation was found and is not a release */
+#undef DEAL_II_USE_PETSC_DEV
+
 /* Defined if a SLEPc installation was found and is going to be used */
 #undef DEAL_II_USE_SLEPC
 
     >=  \
     (major)*10000 + (minor)*100 + (subminor))
 
+#define DEAL_II_PETSC_VERSION_DEV() \
+  (DEAL_II_USE_PETSC_DEV)
+
 #include <deal.II/base/numbers.h>
 #include <deal.II/base/types.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.