Reference documentation for deal.II version 9.0.0
source
grid
tria_faces.cc
1
// ---------------------------------------------------------------------
2
//
3
// Copyright (C) 2006 - 2018 by the deal.II authors
4
//
5
// This file is part of the deal.II library.
6
//
7
// The deal.II library is free software; you can use it, redistribute
8
// it, and/or modify it under the terms of the GNU Lesser General
9
// Public License as published by the Free Software Foundation; either
10
// version 2.1 of the License, or (at your option) any later version.
11
// The full text of the license can be found in the file LICENSE at
12
// the top level of the deal.II distribution.
13
//
14
// ---------------------------------------------------------------------
15
16
17
#include <deal.II/base/memory_consumption.h>
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
28
std::size_t
29
TriaFaces<1>::memory_consumption
()
const
30
{
31
return
0;
32
}
33
34
35
std::size_t
36
TriaFaces<2>::memory_consumption
()
const
37
{
38
return
MemoryConsumption::memory_consumption
(lines);
39
}
40
41
42
std::size_t
43
TriaFaces<3>::memory_consumption
()
const
44
{
45
return
(
MemoryConsumption::memory_consumption
(quads) +
46
MemoryConsumption::memory_consumption
(lines) );
47
}
48
}
49
}
50
51
DEAL_II_NAMESPACE_CLOSE
52
internal::TriangulationImplementation::TriaFaces
Definition:
tria.h:63
internal
Definition:
aligned_vector.h:327
MemoryConsumption::memory_consumption
std::enable_if< std::is_fundamental< T >::value, std::size_t >::type memory_consumption(const T &t)
Definition:
memory_consumption.h:273
Generated by
1.8.14