FEAT
3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
dof_traits.hpp
1
// FEAT3: Finite Element Analysis Toolbox, Version 3
2
// Copyright (C) 2010 by Stefan Turek & the FEAT group
3
// FEAT3 is released under the GNU General Public License version 3,
4
// see the file 'copyright.txt' in the top level directory for details.
5
6
#pragma once
7
8
// includes, FEAT
9
#include <kernel/shape.hpp>
10
11
namespace
FEAT
12
{
13
namespace
Space
14
{
15
namespace
P2Bubble
16
{
22
template
<
typename
Shape_,
int
dim_>
23
struct
DofTraits
24
{
26
static
constexpr
int
count
= 0;
27
};
28
29
template
<
typename
Shape_>
30
struct
DofTraits
<Shape_, 0>
31
{
33
static
constexpr
int
count
= 1;
34
};
35
36
template
<
int
shape_dim_>
37
struct
DofTraits
<Shape::Simplex<shape_dim_>, 1>
38
{
40
static
constexpr
int
count
= 1;
41
};
42
43
template
<>
44
struct
DofTraits
<Shape::Simplex<2>, 2>
45
{
47
static
constexpr
int
count
= 1;
48
};
49
50
template
<>
51
struct
DofTraits
<Shape::Simplex<3>, 3>
52
{
54
static
constexpr
int
count
= 1;
55
};
56
}
// namespace P2Bubble
57
}
// namespace Space
58
}
// namespace FEAT
FEAT
FEAT namespace.
Definition:
adjactor.hpp:12
FEAT::Space::P2Bubble::DofTraits
P2-Bubble Dof-Traits class template.
Definition:
dof_traits.hpp:24
FEAT::Space::P2Bubble::DofTraits::count
static constexpr int count
no dofs for any shape dimension > 0
Definition:
dof_traits.hpp:26
kernel
space
p2bubble
dof_traits.hpp
Generated by
1.9.5