dune-localfunctions
3.0-git
dune
localfunctions
lagrange
q2.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
#ifndef DUNE_Q2_LOCALFINITEELEMENT_HH
4
#define DUNE_Q2_LOCALFINITEELEMENT_HH
5
6
#include <dune/common/typetraits.hh>
7
#include <dune/geometry/type.hh>
8
9
#include <
dune/localfunctions/common/localfiniteelementtraits.hh
>
10
#include <
dune/localfunctions/common/localtoglobaladaptors.hh
>
11
#include "
pk.hh
"
12
#include "
qk.hh
"
13
14
namespace
Dune
15
{
17
22
template
<
class
Geometry,
class
RF>
23
class
Q2FiniteElementFactory
:
24
public
ScalarLocalToGlobalFiniteElementAdaptorFactory
<
25
typename std::conditional<Geometry::mydimension == 1,
26
PkLocalFiniteElement<typename Geometry::ctype, RF, 1, 2>,
27
QkLocalFiniteElement<typename Geometry::ctype, RF, Geometry::mydimension, 2> >::type,
28
Geometry>
29
{
30
typedef
typename
std::conditional<Geometry::mydimension == 1,
31
PkLocalFiniteElement<typename Geometry::ctype, RF, 1, 2>
,
32
QkLocalFiniteElement<typename Geometry::ctype, RF, Geometry::mydimension, 2>
>::type LFE;
33
typedef
ScalarLocalToGlobalFiniteElementAdaptorFactory<LFE, Geometry>
Base
;
34
35
static
const
LFE lfe;
36
37
public
:
39
Q2FiniteElementFactory
() :
Base
(lfe) {}
40
};
41
42
template
<
class
Geometry,
class
RF>
43
const
typename
Q2FiniteElementFactory<Geometry, RF>::LFE
44
Q2FiniteElementFactory<Geometry, RF>::lfe;
45
}
46
47
#endif
pk.hh
qk.hh
localtoglobaladaptors.hh
localfiniteelementtraits.hh
Dune
Definition
brezzidouglasmarini1cube2d.hh:14
Dune::ScalarLocalToGlobalFiniteElementAdaptorFactory
Factory for ScalarLocalToGlobalFiniteElementAdaptor objects.
Definition
localtoglobaladaptors.hh:244
Dune::PkLocalFiniteElement
General Lagrange finite element with arbitrary dimension and polynomial order.
Definition
pk.hh:25
Dune::Q2FiniteElementFactory
Factory for global-valued Q23D elements.
Definition
q2.hh:29
Dune::Q2FiniteElementFactory::Q2FiniteElementFactory
Q2FiniteElementFactory()
default constructor
Definition
q2.hh:39
Dune::QkLocalFiniteElement
General Lagrange finite element for cubes with arbitrary dimension and polynomial order.
Definition
qk.hh:22
Generated by
1.9.8