deal.II version GIT relicensing-6834-g5b78e6bcdf 2026-10-01 11:20: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\}}\)
Loading...
Searching...
No Matches
evaluation_template_factory.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 2020 - 2024 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12
13
14#ifndef dealii_matrix_free_evaluation_template_factory_h
15#define dealii_matrix_free_evaluation_template_factory_h
16
17
18#include <deal.II/base/config.h>
19
23
24
26
27
28template <int, typename, bool>
30
31
32namespace internal
33{
34 template <int dim, typename Number>
36 {
37 static void
38 evaluate(const unsigned int n_components,
39 const EvaluationFlags::EvaluationFlags evaluation_flag,
40 const Number *values_dofs,
42
43 static void
44 integrate(const unsigned int n_components,
45 const EvaluationFlags::EvaluationFlags integration_flag,
46 Number *values_dofs,
48 const bool sum_into_values_array);
49
50 static bool
51 fast_evaluation_supported(const unsigned int given_degree,
52 const unsigned int n_q_points_1d);
53 };
54
55
56
57 template <int dim, typename Number>
59 {
60 static void
61 evaluate(const unsigned int n_components,
62 const EvaluationFlags::EvaluationFlags evaluation_flag,
63 const Number *values_dofs,
65
66 static void
67 project_to_face(const unsigned int n_components,
68 const EvaluationFlags::EvaluationFlags evaluation_flag,
69 const Number *values_dofs,
71
72 static void
73 evaluate_in_face(const unsigned int n_components,
74 const EvaluationFlags::EvaluationFlags evaluation_flag,
76
77 static void
78 integrate(const unsigned int n_components,
79 const EvaluationFlags::EvaluationFlags integration_flag,
80 Number *values_dofs,
82 const bool sum_into_values);
83
84 static void
85 collect_from_face(const unsigned int n_components,
86 const EvaluationFlags::EvaluationFlags integration_flag,
87 Number *values_dofs,
89 const bool sum_into_values);
90
91 static void
92 integrate_in_face(const unsigned int n_components,
93 const EvaluationFlags::EvaluationFlags integration_flag,
95
96 static bool
97 fast_evaluation_supported(const unsigned int given_degree,
98 const unsigned int n_q_points_1d);
99 };
100
101
102
103 template <int dim, typename Number, typename VectorizedArrayType>
105 {
106 static void
107 evaluate(const unsigned int n_components,
108 const EvaluationFlags::EvaluationFlags evaluation_flag,
109 const Number *src_ptr,
110 const std::vector<ArrayView<const Number>> *sm_ptr,
112
113 static void
114 integrate(const unsigned int n_components,
115 const EvaluationFlags::EvaluationFlags integration_flag,
116 Number *dst_ptr,
117 const std::vector<ArrayView<const Number>> *sm_ptr,
119 };
120
121
122
123 template <int dim, typename Number>
125 {
126 static void
127 apply(const unsigned int n_components,
129 const Number *in_array,
130 Number *out_array);
131
132 static void
133 apply(const unsigned int n_components,
135 const ArrayView<const Number> &inverse_coefficients,
136 const bool dyadic_coefficients,
137 const Number *in_array,
138 Number *out_array);
139
140 static void
142 const unsigned int n_components,
144 const Number *in_array,
145 Number *out_array);
146 };
147
148 template <int dim,
149 typename Number,
150 typename VectorizedArrayType = VectorizedArray<Number>>
152 {
153 static void
154 apply(const unsigned int n_components,
155 const unsigned int fe_degree,
157 const bool transpose,
159 VectorizedArrayType::size()> &c_mask,
160 VectorizedArrayType *values);
161 };
162
163} // end of namespace internal
164
166
167#endif
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
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:84
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< Number > &shape_info, const bool transpose, const std::array< MatrixFreeFunctions::compressed_constraint_kind, VectorizedArrayType::size()> &c_mask, VectorizedArrayType *values)
static void integrate(const unsigned int n_components, const EvaluationFlags::EvaluationFlags integration_flag, Number *values_dofs, FEEvaluationData< dim, Number, true > &fe_eval, const bool sum_into_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 bool fast_evaluation_supported(const unsigned int given_degree, const unsigned int n_q_points_1d)
static void evaluate_in_face(const unsigned int n_components, const EvaluationFlags::EvaluationFlags evaluation_flag, FEEvaluationData< dim, Number, true > &fe_eval)
static void integrate_in_face(const unsigned int n_components, const EvaluationFlags::EvaluationFlags integration_flag, FEEvaluationData< dim, Number, true > &fe_eval)
static void collect_from_face(const unsigned int n_components, const EvaluationFlags::EvaluationFlags integration_flag, Number *values_dofs, FEEvaluationData< dim, Number, true > &fe_eval, const bool sum_into_values)
static void project_to_face(const unsigned int n_components, const EvaluationFlags::EvaluationFlags evaluation_flag, const Number *values_dofs, FEEvaluationData< dim, Number, 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)
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)