Reference documentation for deal.II version GIT relicensing-245-g36f19064f7 2024-03-29 07:20:02+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: 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// Part of the source code is dual licensed under Apache-2.0 WITH
9// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10// governing the source code and code contributions can be found in
11// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12//
13// ------------------------------------------------------------------------
14
15
16#ifndef dealii_matrix_free_evaluation_template_factory_h
17#define dealii_matrix_free_evaluation_template_factory_h
18
19
20#include <deal.II/base/config.h>
21
25
26
28
29
30template <int, typename, bool>
32
33
34namespace internal
35{
36 template <int dim, typename Number>
38 {
39 static void
40 evaluate(const unsigned int n_components,
41 const EvaluationFlags::EvaluationFlags evaluation_flag,
42 const Number *values_dofs,
44
45 static void
46 integrate(const unsigned int n_components,
47 const EvaluationFlags::EvaluationFlags integration_flag,
48 Number *values_dofs,
50 const bool sum_into_values_array);
51
52 static bool
53 fast_evaluation_supported(const unsigned int given_degree,
54 const unsigned int n_q_points_1d);
55 };
56
57
58
59 template <int dim, typename Number>
61 {
62 static void
63 evaluate(const unsigned int n_components,
64 const EvaluationFlags::EvaluationFlags evaluation_flag,
65 const Number *values_dofs,
67
68 static void
69 project_to_face(const unsigned int n_components,
70 const EvaluationFlags::EvaluationFlags evaluation_flag,
71 const Number *values_dofs,
73
74 static void
75 evaluate_in_face(const unsigned int n_components,
76 const EvaluationFlags::EvaluationFlags evaluation_flag,
78
79 static void
80 integrate(const unsigned int n_components,
81 const EvaluationFlags::EvaluationFlags integration_flag,
82 Number *values_dofs,
84 const bool sum_into_values);
85
86 static void
87 collect_from_face(const unsigned int n_components,
88 const EvaluationFlags::EvaluationFlags integration_flag,
89 Number *values_dofs,
91 const bool sum_into_values);
92
93 static void
94 integrate_in_face(const unsigned int n_components,
95 const EvaluationFlags::EvaluationFlags integration_flag,
97
98 static bool
99 fast_evaluation_supported(const unsigned int given_degree,
100 const unsigned int n_q_points_1d);
101 };
102
103
104
105 template <int dim, typename Number, typename VectorizedArrayType>
107 {
108 static void
109 evaluate(const unsigned int n_components,
110 const EvaluationFlags::EvaluationFlags evaluation_flag,
111 const Number *src_ptr,
112 const std::vector<ArrayView<const Number>> *sm_ptr,
114
115 static void
116 integrate(const unsigned int n_components,
117 const EvaluationFlags::EvaluationFlags integration_flag,
118 Number *dst_ptr,
119 const std::vector<ArrayView<const Number>> *sm_ptr,
121 };
122
123
124
125 template <int dim, typename Number>
127 {
128 static void
129 apply(const unsigned int n_components,
131 const Number *in_array,
132 Number *out_array);
133
134 static void
135 apply(const unsigned int n_components,
137 const ArrayView<const Number> &inverse_coefficients,
138 const bool dyadic_coefficients,
139 const Number *in_array,
140 Number *out_array);
141
142 static void
144 const unsigned int n_components,
146 const Number *in_array,
147 Number *out_array);
148 };
149
150 template <int dim,
151 typename Number,
152 typename VectorizedArrayType = VectorizedArray<Number>>
154 {
155 static void
156 apply(const unsigned int n_components,
157 const unsigned int fe_degree,
159 const bool transpose,
161 VectorizedArrayType::size()> &c_mask,
162 VectorizedArrayType *values);
163 };
164
165} // end of namespace internal
166
168
169#endif
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:502
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:503
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:86
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 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)