Loading [MathJax]/extensions/TeX/AMSsymbols.js
 deal.II version GIT relicensing-3075-gc235bd4825 2025-04-15 08:10:00+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\}}\)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
vector_tools_integrate_difference.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2020 - 2023 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#ifndef dealii_vector_tools_integrate_difference_h
16#define dealii_vector_tools_integrate_difference_h
17
18
19#include <deal.II/base/config.h>
20
22
24
26
27template <int dim, int spacedim>
29class DoFHandler;
30
31template <int dim, typename Number>
32class Function;
33template <int dim, int spacedim>
34class Mapping;
35template <int dim>
36class Quadrature;
37
38template <int dim, int spacedim>
40class Triangulation;
41
42namespace hp
43{
44 template <int dim, int spacedim>
45 class MappingCollection;
46 template <int dim>
47 class QCollection;
48} // namespace hp
49
50
51namespace VectorTools
52{
148 template <int dim, typename Number, class OutVector, int spacedim>
150 void integrate_difference(const Mapping<dim, spacedim> &mapping,
151 const DoFHandler<dim, spacedim> &dof,
152 const ReadVector<Number> &fe_function,
153 const Function<spacedim, Number> &exact_solution,
154 OutVector &difference,
155 const Quadrature<dim> &q,
156 const NormType &norm,
157 const Function<spacedim, double> *weight = nullptr,
158 const double exponent = 2.);
159
167 template <int dim, typename Number, class OutVector, int spacedim>
168 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<OutVector>)
169 void integrate_difference(const DoFHandler<dim, spacedim> &dof,
170 const ReadVector<Number> &fe_function,
171 const Function<spacedim, Number> &exact_solution,
172 OutVector &difference,
173 const Quadrature<dim> &q,
174 const NormType &norm,
175 const Function<spacedim, double> *weight = nullptr,
176 const double exponent = 2.);
177
184 template <int dim, typename Number, class OutVector, int spacedim>
185 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<OutVector>)
186 void integrate_difference(const hp::MappingCollection<dim, spacedim> &mapping,
187 const DoFHandler<dim, spacedim> &dof,
188 const ReadVector<Number> &fe_function,
189 const Function<spacedim, Number> &exact_solution,
190 OutVector &difference,
191 const hp::QCollection<dim> &q,
192 const NormType &norm,
193 const Function<spacedim, double> *weight = nullptr,
194 const double exponent = 2.);
195
203 template <int dim, typename Number, class OutVector, int spacedim>
204 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<OutVector>)
205 void integrate_difference(const DoFHandler<dim, spacedim> &dof,
206 const ReadVector<Number> &fe_function,
207 const Function<spacedim, Number> &exact_solution,
208 OutVector &difference,
209 const hp::QCollection<dim> &q,
210 const NormType &norm,
211 const Function<spacedim, double> *weight = nullptr,
212 const double exponent = 2.);
213
241 template <int dim, int spacedim, class InVector>
242 DEAL_II_CXX20_REQUIRES(concepts::is_dealii_vector_type<InVector>)
243 double compute_global_error(const Triangulation<dim, spacedim> &tria,
244 const InVector &cellwise_error,
245 const NormType &norm,
246 const double exponent = 2.);
247
249} // namespace VectorTools
250
252
253#endif // dealii_vector_tools_integrate_difference_h
Abstract base class for mapping classes.
Definition mapping.h:320
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:35
#define DEAL_II_CXX20_REQUIRES(condition)
Definition config.h:242
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:36
double compute_global_error(const Triangulation< dim, spacedim > &tria, const InVector &cellwise_error, const NormType &norm, const double exponent=2.)
void integrate_difference(const Mapping< dim, spacedim > &mapping, const DoFHandler< dim, spacedim > &dof, const ReadVector< Number > &fe_function, const Function< spacedim, Number > &exact_solution, OutVector &difference, const Quadrature< dim > &q, const NormType &norm, const Function< spacedim, double > *weight=nullptr, const double exponent=2.)
Definition hp.h:117