dune-localfunctions
2.2.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
localfunctions
lagrange
q22d.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_Q22DLOCALFINITEELEMENT_HH
5
#define DUNE_Q22DLOCALFINITEELEMENT_HH
6
7
#warning This file is deprecated and will be removed after Dune 2.2. \
8
Please use q2.hh instead!
9
10
#include <dune/geometry/type.hh>
11
12
#include <
dune/localfunctions/common/localfiniteelementtraits.hh
>
13
#include <
dune/localfunctions/common/localtoglobaladaptors.hh
>
14
#include "
q22d/q22dlocalbasis.hh
"
15
#include "
q22d/q22dlocalcoefficients.hh
"
16
#include "
q22d/q22dlocalinterpolation.hh
"
17
18
namespace
Dune
19
{
20
23
template
<
class
D,
class
R>
24
class
Q22DLocalFiniteElement
25
{
26
public
:
29
typedef
LocalFiniteElementTraits<Q22DLocalBasis<D,R>
,
Q22DLocalCoefficients
,
30
Q22DLocalInterpolation<Q22DLocalBasis<D,R>
> >
Traits
;
31
34
Q22DLocalFiniteElement
()
35
{
36
gt.makeQuadrilateral();
37
}
38
41
const
typename
Traits::LocalBasisType
&
localBasis
()
const
42
{
43
return
basis;
44
}
45
48
const
typename
Traits::LocalCoefficientsType
&
localCoefficients
()
const
49
{
50
return
coefficients;
51
}
52
55
const
typename
Traits::LocalInterpolationType
&
localInterpolation
()
const
56
{
57
return
interpolation;
58
}
59
62
GeometryType
type
()
const
63
{
64
return
gt;
65
}
66
67
private
:
68
Q22DLocalBasis<D,R>
basis;
69
Q22DLocalCoefficients
coefficients;
70
Q22DLocalInterpolation<Q22DLocalBasis<D,R>
> interpolation;
71
GeometryType gt;
72
};
73
75
80
template
<
class
Geometry,
class
RF>
81
class
Q22DFiniteElementFactory
:
82
public
ScalarLocalToGlobalFiniteElementAdaptorFactory
<
83
Q22DLocalFiniteElement<typename Geometry::ctype, RF>, Geometry
84
>
85
{
86
typedef
Q22DLocalFiniteElement<typename Geometry::ctype, RF>
LFE
;
87
typedef
ScalarLocalToGlobalFiniteElementAdaptorFactory<LFE, Geometry>
Base
;
88
89
static
const
LFE
lfe;
90
91
public
:
93
Q22DFiniteElementFactory
() :
Base
(lfe) {}
94
};
95
96
template
<
class
Geometry,
class
RF>
97
const
typename
Q22DFiniteElementFactory<Geometry, RF>::LFE
98
Q22DFiniteElementFactory<Geometry, RF>::lfe;
99
}
100
101
#endif
Generated on Mon May 20 2013 01:06:59 for dune-localfunctions by
1.8.3.1