deal.II version GIT relicensing-2169-gec1b43f35b 2024-11-22 07: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\}}\)
Loading...
Searching...
No Matches
mesh_worker.cc
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2009 - 2018 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
17
20
22
23namespace MeshWorker
24{
25 template <typename number>
26 void
28 {
29 for (unsigned int i = 0; i < J.size(); ++i)
30 J[i] = 0.;
31 for (unsigned int i = 0; i < R.size(); ++i)
32 R[i].reinit(bi);
33 for (unsigned int i = 0; i < M1.size(); ++i)
34 M1[i].matrix.reinit(bi.block_size(M1[i].row),
35 bi.block_size(M1[i].column));
36 for (unsigned int i = 0; i < M2.size(); ++i)
37 M2[i].matrix.reinit(bi.block_size(M2[i].row),
38 bi.block_size(M2[i].column));
39 quadrature_data.reset_values();
40 }
41
42
43 template <typename number>
44 std::size_t
54
55
56 template class LocalResults<float>;
57 template class LocalResults<double>;
58
59 template <int dim, int spacedim, typename number>
61 : use_cell(true)
62 , use_boundary(true)
63 , use_face(true)
64 {}
65
66
67 template <int dim, int spacedim, typename number>
69 bool b,
70 bool f)
71 : use_cell(c)
72 , use_boundary(b)
73 , use_face(f)
74 {}
75
76
77
78 template <int dim, int spacedim, typename number>
79 void
86
87
88 template <int dim, int spacedim, typename number>
89 void
96
97
98 template <int dim, int spacedim, typename number>
99 void
108
109
110 template class LocalIntegrator<1, 1, float>;
111 template class LocalIntegrator<1, 1, double>;
112 template class LocalIntegrator<1, 2, float>;
113 template class LocalIntegrator<1, 2, double>;
114 template class LocalIntegrator<1, 3, float>;
115 template class LocalIntegrator<1, 3, double>;
116 template class LocalIntegrator<2, 2, float>;
117 template class LocalIntegrator<2, 2, double>;
118 template class LocalIntegrator<2, 3, float>;
119 template class LocalIntegrator<2, 3, double>;
120 template class LocalIntegrator<3, 3, float>;
121 template class LocalIntegrator<3, 3, double>;
122} // namespace MeshWorker
123
124
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:498
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:499
#define Assert(cond, exc)
std::enable_if_t< std::is_fundamental_v< T >, std::size_t > memory_consumption(const T &t)