dune-localfunctions  2.2.1
common.hh
Go to the documentation of this file.
1 // -*- tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set ts=8 sw=2 et 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 GenericReferenceElement<DF, dim>& refelem;
19 
23  static const std::size_t s;
24  };
25 
26  template<std::size_t dim, class DF>
27  const GenericReferenceElement<DF, dim>& EdgeS0_5Common<dim,DF>::
28  refelem(GenericReferenceElements<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