]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add header include to import PETSc/SLEPc macro names. 18354/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 11 Apr 2025 15:15:54 +0000 (09:15 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 11 Apr 2025 15:18:52 +0000 (09:18 -0600)
include/deal.II/base/config.h.in

index a57ff299fb2e9f5abd4ffa4ec3bb060e8667aefe..b96bb2b734412358049abbb08537a50bce2cce6f 100644 (file)
@@ -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 <petscversion.h>
 #  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 <slepcversion.h>
 #  define DEAL_II_SLEPC_VERSION_LT(major,minor,subminor) \
     SLEPC_VERSION_LT(major,minor,subminor)
 #  define DEAL_II_SLEPC_VERSION_GTE(major,minor,subminor) \

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.