]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix doxygen for PETScWrappers::TimeStepper using DEAL_II_CXX20_REQUIRES 15373/head
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 16 Jun 2023 16:46:47 +0000 (12:46 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 16 Jun 2023 16:47:16 +0000 (12:47 -0400)
include/deal.II/lac/petsc_ts.h

index fad144445623c600926edf613c4f5050841b8829..ea745c28f5cbef19a93722ec4100125d82d22281 100644 (file)
@@ -304,7 +304,9 @@ namespace PETScWrappers
   template <typename VectorType  = PETScWrappers::VectorBase,
             typename PMatrixType = PETScWrappers::MatrixBase,
             typename AMatrixType = PMatrixType>
-  DEAL_II_CXX20_REQUIRES(
+#  if defined(DEAL_II_HAVE_CXX20) && \
+    !defined(DEAL_II_DOXYGEN_DO_NOT_PARSE_REQUIRES_CLAUSES)
+  requires(
     (concepts::is_dealii_petsc_vector_type<VectorType> ||
      std::constructible_from<
        VectorType,
@@ -313,7 +315,8 @@ namespace PETScWrappers
                  PMatrixType,
                  Mat>)&&(concepts::is_dealii_petsc_matrix_type<AMatrixType> ||
                          std::constructible_from<AMatrixType, Mat>))
-  class TimeStepper
+#  endif
+    class TimeStepper
   {
   public:
     /**

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.