dune-localfunctions 2.8.0
Loading...
Searching...
No Matches
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/dimension.hh>
10#include <dune/geometry/referenceelements.hh>
11#include <dune/geometry/type.hh>
12
13namespace Dune {
14
16 template<std::size_t dim, class DF = double>
19 using RefElem =
20 decltype(referenceElement(DF{}, GeometryTypes::simplex(dim),
21 Dim<dim>{}));
22
24 RefElem refelem = referenceElement(DF{}, GeometryTypes::simplex(dim),
25 Dim<dim>{});
26
28
32 std::size_t s = refelem.size(dim-1);
33 };
34
35} // namespace Dune
36
37#endif // DUNE_LOCALFUNCTIONS_WHITNEY_EDGES0_5_COMMON_HH
Definition: bdfmcube.hh:16
Common base class for edge elements.
Definition: common.hh:17
RefElem refelem
The reference element for this edge element.
Definition: common.hh:24
decltype(referenceElement(DF{}, GeometryTypes::simplex(dim), Dim< dim >{})) RefElem
The type of the referenceElement.
Definition: common.hh:21
std::size_t s
The number of base functions.
Definition: common.hh:32