DUNE PDELab (2.8)

common.hh
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
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
unspecified value type referenceElement(T &&... t)
Returns a reference element for the objects t....
constexpr GeometryType simplex(unsigned int dim)
Returns a GeometryType representing a simplex of dimension dim.
Definition: type.hh:461
Dune namespace.
Definition: alignedallocator.hh:11
Static tag representing a dimension.
Definition: dimension.hh:14
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
A unique label for each type of element that can occur in a grid.
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 21, 23:30, 2024)