From: Wolfgang Bangerth Date: Thu, 25 Feb 2010 15:44:02 +0000 (+0000) Subject: Provide simpler macros to test for PETSc versions. X-Git-Tag: v8.0.0~6405 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0387923579016870bd42e12f8d7d489228daa2af;p=dealii.git Provide simpler macros to test for PETSc versions. git-svn-id: https://svn.dealii.org/trunk@20692 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/config.h.in b/deal.II/base/include/base/config.h.in index e7c2c80b68..e8474650ba 100644 --- a/deal.II/base/include/base/config.h.in +++ b/deal.II/base/include/base/config.h.in @@ -584,6 +584,26 @@ # 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 /**