dune-pdelab  2.0.0
q22dfem.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_Q22DFEM_HH
5 #define DUNE_PDELAB_Q22DFEM_HH
6 
7 #warning dune/pdelab/finiteelementmap/q22dfem.hh and Q22DLocalFiniteElementMap are deprecated, please use dune/pdelab/finiteelementmap/qkfem.hh and QkLocalFiniteElementMap instead
8 
9 #include <dune/common/deprecated.hh>
10 #include <dune/localfunctions/lagrange/qk.hh>
11 #include <dune/localfunctions/lagrange/q2.hh> // for Q2FiniteElementFactory
12 
13 #include "finiteelementmap.hh"
15 
16 namespace Dune {
17  namespace PDELab {
18 
21  template<class D, class R>
22  class DUNE_DEPRECATED_MSG("Please use QkLocalFiniteElementMap instead") Q22DLocalFiniteElementMap
23  : public SimpleLocalFiniteElementMap< Dune::QkLocalFiniteElement<D,R,2,2> >
24  {
25 
26  public:
27 
28  bool fixedSize() const
29  {
30  return true;
31  }
32 
33  std::size_t size(GeometryType gt) const
34  {
35  if (gt.isVertex() || gt.isLine() || gt.isQuadrilateral())
36  return 1;
37  else
38  return 0;
39  }
40 
41  std::size_t maxLocalSize() const
42  {
43  return 9;
44  }
45 
46  };
47 
49 
55  template<class Geometry, class RF>
56  class DUNE_DEPRECATED_MSG("Please use QkLocalFiniteElementMap instead") Q22DFiniteElementMap
57  : public GeometryFiniteElementMap<
58  Q2FiniteElementFactory<Geometry, RF>
59  >
60  {
61  typedef Q2FiniteElementFactory<Geometry, RF> FEFactory;
63 
64  static FEFactory feFactory;
65 
66  public:
67  Q22DFiniteElementMap() : Base(feFactory) { }
68 
69  bool fixedSize() const
70  {
71  return true;
72  }
73 
74  std::size_t size(GeometryType gt) const
75  {
76  if (gt.isVertex() || gt.isLine() || gt.isQuadrilateral())
77  return 1;
78  else
79  return 0;
80  }
81 
82  std::size_t maxLocalSize() const
83  {
84  return 9;
85  }
86 
87  };
88 
89  template<class GV, class RF>
90  typename Q22DFiniteElementMap<GV, RF>::FEFactory
91  Q22DFiniteElementMap<GV, RF>::feFactory;
92  }
93 }
94 
95 #endif
std::size_t size(GeometryType gt) const
Definition: q22dfem.hh:74
bool fixedSize() const
Definition: q22dfem.hh:69
Generic finite element map for global finite elements created with a geometry.
Definition: global.hh:19
bool fixedSize() const
Definition: q22dfem.hh:28
std::size_t maxLocalSize() const
Definition: q22dfem.hh:82
std::size_t size(GeometryType gt) const
Definition: q22dfem.hh:33
simple implementation where all entities have the same finite element
Definition: finiteelementmap.hh:107
std::size_t maxLocalSize() const
Definition: q22dfem.hh:41
Global-valued finite element map for Q22D elements.
Definition: q22dfem.hh:56
Q22DFiniteElementMap()
Definition: q22dfem.hh:67