dune-pdelab
2.7-git
dune
pdelab
finiteelementmap
opbfem.hh
Go to the documentation of this file.
1
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2
// vi: set et ts=4 sw=2 sts=2:
3
4
#ifndef DUNE_PDELAB_FINITEELEMENTMAP_OPBFEM_HH
5
#define DUNE_PDELAB_FINITEELEMENTMAP_OPBFEM_HH
6
7
#include <dune/common/deprecated.hh>
8
9
#include<
dune/pdelab/finiteelementmap/finiteelementmap.hh
>
10
#include<
dune/pdelab/finiteelement/l2orthonormal.hh
>
11
12
namespace
Dune
{
13
namespace
PDELab {
14
17
template
<
class
D,
class
R,
int
k,
int
d, Dune::GeometryType::BasicType bt,
typename
ComputationFieldType=R, PB::BasisType basisType = PB::BasisType::Pk>
18
class
OPBLocalFiniteElementMap
19
:
public
Dune::PDELab::SimpleLocalFiniteElementMap
<Dune::OPBLocalFiniteElement<D,R,k,d,bt,ComputationFieldType,basisType>,d>
20
{
21
typedef
PB::BasisTraits<basisType>
BasisTraits
;
22
public
:
23
24
static
constexpr
bool
fixedSize
()
25
{
26
return
true
;
27
}
28
29
static
constexpr
bool
hasDOFs
(
int
codim)
30
{
31
return
codim == 0;
32
}
33
34
static
constexpr std::size_t
size
(GeometryType gt)
35
{
36
DUNE_NO_DEPRECATED_BEGIN
37
if
(gt == GeometryType(bt,d))
38
DUNE_NO_DEPRECATED_END
39
return
BasisTraits::template
Size<k,d>::value
;
40
else
41
return
0;
42
}
43
44
static
constexpr std::size_t
maxLocalSize
()
45
{
46
return
BasisTraits::template
Size<k,d>::value
;
47
}
48
49
};
50
51
}
52
}
53
54
#endif // DUNE_PDELAB_FINITEELEMENTMAP_OPBFEM_HH
Dune::PDELab::OPBLocalFiniteElementMap::hasDOFs
static constexpr bool hasDOFs(int codim)
Definition:
opbfem.hh:29
Dune::PDELab::SimpleLocalFiniteElementMap
simple implementation where all entities have the same finite element
Definition:
finiteelementmap.hh:98
l2orthonormal.hh
This file defines polynomial basis functions on the reference element in a generic way.
Dune
For backward compatibility – Do not use this!
Definition:
adaptivity.hh:28
Dune::PDELab::OPBLocalFiniteElementMap
Definition:
opbfem.hh:18
value
static const unsigned int value
Definition:
gridfunctionspace/tags.hh:139
finiteelementmap.hh
Dune::PDELab::OPBLocalFiniteElementMap::maxLocalSize
static constexpr std::size_t maxLocalSize()
Definition:
opbfem.hh:44
Dune::PDELab::OPBLocalFiniteElementMap::size
static constexpr std::size_t size(GeometryType gt)
Definition:
opbfem.hh:34
Dune::PB::BasisTraits
Definition:
l2orthonormal.hh:159
Dune::PDELab::OPBLocalFiniteElementMap::fixedSize
static constexpr bool fixedSize()
Definition:
opbfem.hh:24
Generated by
1.8.17