Reference documentation for deal.II version GIT 00e6fe71c9 2023-06-04 19:35:01+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
evaluation_template_factory.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2020 - 2022 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 
17 #ifndef dealii_matrix_free_evaluation_template_factory_h
18 #define dealii_matrix_free_evaluation_template_factory_h
19 
20 
21 #include <deal.II/base/config.h>
22 
26 
27 
29 
30 
31 template <int, typename, bool>
32 class FEEvaluationData;
33 
34 
35 namespace internal
36 {
37  template <int dim, typename Number>
39  {
40  static void
41  evaluate(const unsigned int n_components,
42  const EvaluationFlags::EvaluationFlags evaluation_flag,
43  const Number * values_dofs,
45 
46  static void
47  integrate(const unsigned int n_components,
48  const EvaluationFlags::EvaluationFlags integration_flag,
49  Number * values_dofs,
51  const bool sum_into_values_array);
52 
53  static bool
54  fast_evaluation_supported(const unsigned int given_degree,
55  const unsigned int n_q_points_1d);
56  };
57 
58 
59 
60  template <int dim, typename Number>
62  {
63  static void
64  evaluate(const unsigned int n_components,
65  const EvaluationFlags::EvaluationFlags evaluation_flag,
66  const Number * values_dofs,
68 
69  static void
70  integrate(const unsigned int n_components,
71  const EvaluationFlags::EvaluationFlags integration_flag,
72  Number * values_dofs,
74  };
75 
76 
77 
78  template <int dim, typename Number, typename VectorizedArrayType>
80  {
81  static void
82  evaluate(const unsigned int n_components,
83  const EvaluationFlags::EvaluationFlags evaluation_flag,
84  const Number * src_ptr,
85  const std::vector<ArrayView<const Number>> * sm_ptr,
87 
88  static void
89  integrate(const unsigned int n_components,
90  const EvaluationFlags::EvaluationFlags integration_flag,
91  Number * dst_ptr,
92  const std::vector<ArrayView<const Number>> *sm_ptr,
94  };
95 
96 
97 
98  template <int dim, typename Number>
100  {
101  static void
102  apply(const unsigned int n_components,
104  const Number * in_array,
105  Number * out_array);
106 
107  static void
108  apply(const unsigned int n_components,
110  const ArrayView<const Number> & inverse_coefficients,
111  const bool dyadic_coefficients,
112  const Number * in_array,
113  Number * out_array);
114 
115  static void
117  const unsigned int n_components,
119  const Number * in_array,
120  Number * out_array);
121  };
122 
123  template <int dim,
124  typename Number,
125  typename VectorizedArrayType = VectorizedArray<Number>>
127  {
128  static void
129  apply(const unsigned int n_components,
130  const unsigned int fe_degree,
132  const bool transpose,
134  VectorizedArrayType::size()> & c_mask,
135  VectorizedArrayType * values);
136  };
137 
138 } // end of namespace internal
139 
141 
142 #endif
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:474
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:475
DerivativeForm< 1, spacedim, dim, Number > transpose(const DerivativeForm< 1, dim, spacedim, Number > &DF)
EvaluationFlags
The EvaluationFlags enum.
std::uint8_t compressed_constraint_kind
Definition: dof_info.h:83
static void apply(const unsigned int n_components, const FEEvaluationData< dim, Number, false > &fe_eval, const Number *in_array, Number *out_array)
static void apply(const unsigned int n_components, const FEEvaluationData< dim, Number, false > &fe_eval, const ArrayView< const Number > &inverse_coefficients, const bool dyadic_coefficients, const Number *in_array, Number *out_array)
static void transform_from_q_points_to_basis(const unsigned int n_components, const FEEvaluationData< dim, Number, false > &fe_eval, const Number *in_array, Number *out_array)
static bool fast_evaluation_supported(const unsigned int given_degree, const unsigned int n_q_points_1d)
static void evaluate(const unsigned int n_components, const EvaluationFlags::EvaluationFlags evaluation_flag, const Number *values_dofs, FEEvaluationData< dim, Number, false > &fe_eval)
static void integrate(const unsigned int n_components, const EvaluationFlags::EvaluationFlags integration_flag, Number *values_dofs, FEEvaluationData< dim, Number, false > &fe_eval, const bool sum_into_values_array)
static void apply(const unsigned int n_components, const unsigned int fe_degree, const MatrixFreeFunctions::ShapeInfo< VectorizedArrayType > &shape_info, const bool transpose, const std::array< MatrixFreeFunctions::compressed_constraint_kind, VectorizedArrayType::size()> &c_mask, VectorizedArrayType *values)
static void evaluate(const unsigned int n_components, const EvaluationFlags::EvaluationFlags evaluation_flag, const Number *values_dofs, FEEvaluationData< dim, Number, true > &fe_eval)
static void integrate(const unsigned int n_components, const EvaluationFlags::EvaluationFlags integration_flag, Number *values_dofs, FEEvaluationData< dim, Number, true > &fe_eval)
static void integrate(const unsigned int n_components, const EvaluationFlags::EvaluationFlags integration_flag, Number *dst_ptr, const std::vector< ArrayView< const Number >> *sm_ptr, FEEvaluationData< dim, VectorizedArrayType, true > &fe_eval)
static void evaluate(const unsigned int n_components, const EvaluationFlags::EvaluationFlags evaluation_flag, const Number *src_ptr, const std::vector< ArrayView< const Number >> *sm_ptr, FEEvaluationData< dim, VectorizedArrayType, true > &fe_eval)