dune-pdelab  2.0.0
edges0.5fem.hh
Go to the documentation of this file.
1 // -*- tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=8 sw=2 sts=2:
3 
4 #ifndef DUNE_PDELAB_FINITEELEMENTMAP_EDGES0_5FEM_HH
5 #define DUNE_PDELAB_FINITEELEMENTMAP_EDGES0_5FEM_HH
6 
7 #include <dune/localfunctions/whitney/edges0.5.hh>
8 
10 
11 namespace Dune {
12  namespace PDELab {
13 
15 
23  template<class Geometry, class VertexOrderFactory, class RF>
26  EdgeS0_5FiniteElementFactory<Geometry, RF>, VertexOrderFactory
27  >
28  {
29  typedef EdgeS0_5FiniteElementFactory<Geometry, RF> FEFactory;
31  FEFactory, VertexOrderFactory
32  > Base;
33 
34  static FEFactory &feFactory() {
35  static FEFactory feFactory_;
36  return feFactory_;
37  }
38 
39  public:
40  EdgeS0_5FiniteElementMap(const VertexOrderFactory &voFactory) :
41  Base(feFactory(), voFactory)
42  { }
43 
44  bool fixedSize() const
45  {
46  return true;
47  }
48 
49  std::size_t size(GeometryType gt) const
50  {
51  return gt.isLine() ? 1 : 0;
52  }
53 
54  std::size_t maxLocalSize() const
55  {
57  }
58 
59  };
60  }
61 }
62 
63 #endif // DUNE_PDELAB_FINITEELEMENTMAP_EDGES0_5FEM_HH
Global-valued finite element map for EdgeS0_5 elements.
Definition: edges0.5fem.hh:24
std::size_t size(GeometryType gt) const
Definition: edges0.5fem.hh:49
std::size_t maxLocalSize() const
Definition: edges0.5fem.hh:54
Generic finite element map for global finite elements created with a geometry and a vertex ordering...
Definition: global.hh:61
bool fixedSize() const
Definition: edges0.5fem.hh:44
EdgeS0_5FiniteElementMap(const VertexOrderFactory &voFactory)
Definition: edges0.5fem.hh:40
const std::string s
Definition: function.hh:1103