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
patches.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) 2011 - 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#ifndef dealii_integrators_patches_h
14#define dealii_integrators_patches_h
15
16
17#include <deal.II/base/config.h>
18
21
23#include <deal.II/fe/mapping.h>
24
26
28
29namespace LocalIntegrators
30{
34 namespace Patches
35 {
36 template <int dim>
37 DEAL_II_DEPRECATED inline void
39 const FEValuesBase<dim> &fe,
40 const ArrayView<const std::vector<double>> &input)
41 {
42 const unsigned int n_comp = fe.get_fe().n_components();
44 AssertDimension(result.n_rows(), fe.n_quadrature_points);
45 AssertDimension(result.n_cols(), n_comp + dim);
46
47 for (unsigned int k = 0; k < fe.n_quadrature_points; ++k)
48 {
49 for (unsigned int d = 0; d < dim; ++d)
50 result(k, d) = fe.quadrature_point(k)[d];
51 for (unsigned int i = 0; i < n_comp; ++i)
52 result(k, dim + i) = input[i][k];
53 }
54 }
55 } // namespace Patches
56} // namespace LocalIntegrators
57
59
60#endif
const Point< spacedim > & quadrature_point(const unsigned int q_point) const
const unsigned int n_quadrature_points
const FiniteElement< dim, spacedim > & get_fe() const
unsigned int n_components() const
#define DEAL_II_DEPRECATED
Definition config.h:294
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
#define AssertVectorVectorDimension(VEC, DIM1, DIM2)
#define AssertDimension(dim1, dim2)
void points_and_values(Table< 2, double > &result, const FEValuesBase< dim > &fe, const ArrayView< const std::vector< double > > &input)
Definition patches.h:38
Library of integrals over cells and faces.
Definition advection.h:32