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