dune-pdelab  2.4.1
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  bool hasDOFs(int codim) const
50  {
51  return Geometry::dimension - codim == 1;
52  }
53 
54  std::size_t size(GeometryType gt) const
55  {
56  return gt.isLine() ? 1 : 0;
57  }
58 
59  std::size_t maxLocalSize() const
60  {
62  }
63 
64  };
65  }
66 }
67 
68 #endif // DUNE_PDELAB_FINITEELEMENTMAP_EDGES0_5FEM_HH
EdgeS0_5FiniteElementMap(const VertexOrderFactory &voFactory)
Definition: edges0.5fem.hh:40
bool fixedSize() const
Definition: edges0.5fem.hh:44
std::size_t maxLocalSize() const
Definition: edges0.5fem.hh:59
Definition: adaptivity.hh:27
std::size_t size(GeometryType gt) 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 hasDOFs(int codim) const
Definition: edges0.5fem.hh:49
Global-valued finite element map for EdgeS0_5 elements.
Definition: edges0.5fem.hh:24
const std::string s
Definition: function.hh:1102