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
mesh_worker.cc
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) 2009 - 2026 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#include <deal.II/base/config.h>
15
19
21
24
25#include <Kokkos_Macros.hpp>
26
27#include <cstddef>
28#include <vector>
29
31
32namespace MeshWorker
33{
34 template <typename number>
35 void
37 {
38 for (unsigned int i = 0; i < J.size(); ++i)
39 J[i] = 0.;
40 for (unsigned int i = 0; i < R.size(); ++i)
41 R[i].reinit(bi);
42 for (unsigned int i = 0; i < M1.size(); ++i)
43 M1[i].matrix.reinit(bi.block_size(M1[i].row),
44 bi.block_size(M1[i].column));
45 for (unsigned int i = 0; i < M2.size(); ++i)
46 M2[i].matrix.reinit(bi.block_size(M2[i].row),
47 bi.block_size(M2[i].column));
48 quadrature_data.reset_values();
49 }
50
51
52 template <typename number>
53 std::size_t
63
64
65 template class LocalResults<float>;
66 template class LocalResults<double>;
67
68 template <int dim, int spacedim, typename number>
70 : use_cell(true)
71 , use_boundary(true)
72 , use_face(true)
73 {}
74
75
76 template <int dim, int spacedim, typename number>
78 bool b,
79 bool f)
80 : use_cell(c)
81 , use_boundary(b)
82 , use_face(f)
83 {}
84
85
86
87 template <int dim, int spacedim, typename number>
88 void
95
96
97 template <int dim, int spacedim, typename number>
98 void
105
106
107 template <int dim, int spacedim, typename number>
108 void
117
118
119 template class LocalIntegrator<1, 1, float>;
120 template class LocalIntegrator<1, 1, double>;
121 template class LocalIntegrator<1, 2, float>;
122 template class LocalIntegrator<1, 2, double>;
123 template class LocalIntegrator<1, 3, float>;
124 template class LocalIntegrator<1, 3, double>;
125 template class LocalIntegrator<2, 2, float>;
126 template class LocalIntegrator<2, 2, double>;
127 template class LocalIntegrator<2, 3, float>;
128 template class LocalIntegrator<2, 3, double>;
129 template class LocalIntegrator<3, 3, float>;
130 template class LocalIntegrator<3, 3, double>;
131} // namespace MeshWorker
132
133
size_type block_size(const unsigned int i) const
virtual void cell(DoFInfo< dim, spacedim, number > &dinfo, IntegrationInfo< dim, spacedim > &info) const
virtual void face(DoFInfo< dim, spacedim, number > &dinfo1, DoFInfo< dim, spacedim, number > &dinfo2, IntegrationInfo< dim, spacedim > &info1, IntegrationInfo< dim, spacedim > &info2) const
virtual void boundary(DoFInfo< dim, spacedim, number > &dinfo, IntegrationInfo< dim, spacedim > &info) const
std::size_t memory_consumption() const
void reinit(const BlockIndices &local_sizes)
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
#define Assert(cond, exc)
std::enable_if_t< std::is_fundamental_v< T >, std::size_t > memory_consumption(const T &t)