dune-localfunctions  2.3.0
common.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_LOCALFUNCTIONS_WHITNEY_EDGES0_5_COMMON_HH
5 #define DUNE_LOCALFUNCTIONS_WHITNEY_EDGES0_5_COMMON_HH
6 
7 #include <cstddef>
8 
9 #include <dune/geometry/referenceelements.hh>
10 
11 namespace Dune {
12 
14  template<std::size_t dim, class DF = double>
15  struct EdgeS0_5Common {
17  static const ReferenceElement<DF, dim>& refelem;
19 
23  static const std::size_t s;
24  };
25 
26  template<std::size_t dim, class DF>
27  const ReferenceElement<DF, dim>& EdgeS0_5Common<dim,DF>::
28  refelem(ReferenceElements<DF, dim>::simplex());
29 
30  template<std::size_t dim, typename DF>
31  const std::size_t EdgeS0_5Common<dim,DF>::s(refelem.size(dim-1));
32 
33 } // namespace Dune
34 
35 #endif // DUNE_LOCALFUNCTIONS_WHITNEY_EDGES0_5_COMMON_HH
static const ReferenceElement< DF, dim > & refelem
The reference element for this edge element.
Definition: common.hh:17
static const std::size_t s
The number of base functions.
Definition: common.hh:23
Common base class for edge elements.
Definition: common.hh:15