From: Wolfgang Bangerth Date: Thu, 25 Feb 2010 15:47:56 +0000 (+0000) Subject: Also commit configure.in. X-Git-Tag: v8.0.0~6402 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c354c1b9082e8a32794c4770fb1ecebc37fc2880;p=dealii.git Also commit configure.in. git-svn-id: https://svn.dealii.org/trunk@20695 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/configure.in b/deal.II/configure.in index 1f1dece019..a752aa6b7e 100644 --- a/deal.II/configure.in +++ b/deal.II/configure.in @@ -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 /**