From d7ef9aeff8d7859b72be7e454bd24498bbcd2531 Mon Sep 17 00:00:00 2001 From: young Date: Tue, 6 Sep 2011 07:39:06 +0000 Subject: [PATCH] Function check for PETSc dev - looks like version checks git-svn-id: https://svn.dealii.org/trunk@24255 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/configure.in | 4 ++++ deal.II/include/deal.II/base/config.h.in | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/deal.II/configure.in b/deal.II/configure.in index f30e6a3463..cd1ca524b4 100644 --- a/deal.II/configure.in +++ b/deal.II/configure.in @@ -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 #include diff --git a/deal.II/include/deal.II/base/config.h.in b/deal.II/include/deal.II/base/config.h.in index d295d45f6a..72a9cda704 100644 --- a/deal.II/include/deal.II/base/config.h.in +++ b/deal.II/include/deal.II/base/config.h.in @@ -265,6 +265,9 @@ 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 @@ -647,6 +650,9 @@ >= \ (major)*10000 + (minor)*100 + (subminor)) +#define DEAL_II_PETSC_VERSION_DEV() \ + (DEAL_II_USE_PETSC_DEV) + #include #include -- 2.39.5