Loading [MathJax]/extensions/TeX/newcommand.js
Reference documentation for deal.II version 9.6.0
\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\}}
Toggle main menu visibility
Main Page
Tutorial
Code gallery
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Variables
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
v
w
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
v
Enumerations
a
b
c
d
e
f
g
h
i
l
n
o
p
r
s
v
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerations
b
c
d
e
f
g
i
m
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Related Symbols
:
a
b
c
d
f
g
i
l
m
n
o
p
r
s
t
u
v
Related Pages
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
v
Variables
a
c
d
e
f
g
h
i
k
l
m
n
o
p
s
t
u
v
Typedefs
Enumerations
Enumerator
m
u
Macros
a
b
d
e
f
h
i
m
p
s
t
dealii.org
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Concepts
Loading...
Searching...
No Matches
source
grid
tria_faces.cc
Go to the documentation of this file.
1
// ------------------------------------------------------------------------
2
//
3
// SPDX-License-Identifier: LGPL-2.1-or-later
4
// Copyright (C) 2006 - 2022 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
#include <
deal.II/base/memory_consumption.h
>
17
18
#include <
deal.II/grid/tria_faces.h
>
19
20
DEAL_II_NAMESPACE_OPEN
21
22
23
namespace
internal
24
{
25
namespace
TriangulationImplementation
26
{
27
TriaFaces::TriaFaces
(
const
unsigned
int
dim)
28
: dim(dim)
29
, quads(2)
30
, lines(1)
31
{}
27
TriaFaces::TriaFaces
(
const
unsigned
int
dim) {
…
}
32
33
std::size_t
34
TriaFaces::memory_consumption
()
const
35
{
36
if
(
dim
== 2)
37
return
MemoryConsumption::memory_consumption
(
lines
);
38
if
(
dim
== 3)
39
return
(
MemoryConsumption::memory_consumption
(
quads
) +
40
MemoryConsumption::memory_consumption
(
quads_line_orientations
) +
41
MemoryConsumption::memory_consumption
(
quad_is_quadrilateral
) +
42
MemoryConsumption::memory_consumption
(
lines
));
43
44
return
0;
45
}
34
TriaFaces::memory_consumption
()
const
{
…
}
46
}
// namespace TriangulationImplementation
47
}
// namespace internal
48
49
DEAL_II_NAMESPACE_CLOSE
internal::TriangulationImplementation::TriaFaces::TriaFaces
TriaFaces()=default
internal::TriangulationImplementation::TriaFaces::quads_line_orientations
std::vector< bool > quads_line_orientations
Definition
tria_faces.h:73
internal::TriangulationImplementation::TriaFaces::quads
TriaObjects quads
Definition
tria_faces.h:65
internal::TriangulationImplementation::TriaFaces::dim
unsigned int dim
Definition
tria_faces.h:58
internal::TriangulationImplementation::TriaFaces::memory_consumption
std::size_t memory_consumption() const
Definition
tria_faces.cc:34
internal::TriangulationImplementation::TriaFaces::lines
TriaObjects lines
Definition
tria_faces.h:101
internal::TriangulationImplementation::TriaFaces::quad_is_quadrilateral
std::vector< bool > quad_is_quadrilateral
Definition
tria_faces.h:82
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition
config.h:503
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition
config.h:504
memory_consumption.h
MemoryConsumption::memory_consumption
std::enable_if_t< std::is_fundamental_v< T >, std::size_t > memory_consumption(const T &t)
Definition
memory_consumption.h:271
internal
Definition
aligned_vector.h:727
tria_faces.h
Generated by
1.11.0