From: Wolfgang Bangerth Date: Fri, 11 Apr 2025 15:15:54 +0000 (-0600) Subject: Add header include to import PETSc/SLEPc macro names. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F18354%2Fhead;p=dealii.git Add header include to import PETSc/SLEPc macro names. --- diff --git a/include/deal.II/base/config.h.in b/include/deal.II/base/config.h.in index a57ff299fb..b96bb2b734 100644 --- a/include/deal.II/base/config.h.in +++ b/include/deal.II/base/config.h.in @@ -509,10 +509,11 @@ DEAL_II_NAMESPACE_CLOSE * PETSc: * * Note: The following macros are defined in petscversion.h - * so we don't repeat them here. + * so we simply refer to the ones there. */ #ifdef DEAL_II_WITH_PETSC +# include # define DEAL_II_PETSC_VERSION_LT(major,minor,subminor) \ PETSC_VERSION_LT(major,minor,subminor) # define DEAL_II_PETSC_VERSION_GTE(major,minor,subminor) \ @@ -524,6 +525,7 @@ DEAL_II_NAMESPACE_CLOSE */ #ifdef DEAL_II_WITH_SLEPC +# include # define DEAL_II_SLEPC_VERSION_LT(major,minor,subminor) \ SLEPC_VERSION_LT(major,minor,subminor) # define DEAL_II_SLEPC_VERSION_GTE(major,minor,subminor) \