]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make FEPointEval expose same types as FEEval 15024/head
authorJohannes Heinz <johannes.heinz@tuwien.ac.at>
Mon, 3 Apr 2023 11:24:41 +0000 (13:24 +0200)
committerJohannes Heinz <johannes.heinz@tuwien.ac.at>
Mon, 3 Apr 2023 11:45:59 +0000 (13:45 +0200)
include/deal.II/matrix_free/fe_point_evaluation.h

index 76e714638d375772621dece63cfa6744929002f5..59a46688a11e83701bde24904430943c05f64a1f 100644 (file)
@@ -400,13 +400,18 @@ namespace internal
  * by this class is similar (or sometimes even somewhat lower) than using
  * `FEValues::reinit(cell)` followed by `FEValues::get_function_gradients`.
  */
-template <int n_components,
+template <int n_components_,
           int dim,
           int spacedim    = dim,
           typename Number = double>
 class FEPointEvaluation
 {
 public:
+  static constexpr unsigned int dimension    = dim;
+  static constexpr unsigned int n_components = n_components_;
+
+  using number_type = Number;
+
   using value_type = typename internal::FEPointEvaluation::
     EvaluatorTypeTraits<dim, n_components, Number>::value_type;
   using gradient_type = typename internal::FEPointEvaluation::

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.