Dune Core Modules (2.9.1)

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// SPDX-FileCopyrightInfo: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
5
6#ifndef DUNE_LOCALFUNCTIONS_WHITNEY_EDGES0_5_COMMON_HH
7#define DUNE_LOCALFUNCTIONS_WHITNEY_EDGES0_5_COMMON_HH
8
9#include <cstddef>
10
11#include <dune/geometry/dimension.hh>
12#include <dune/geometry/referenceelements.hh>
13#include <dune/geometry/type.hh>
14
15namespace Dune {
16
18 template<std::size_t dim, class DF = double>
21 using RefElem =
22 decltype(referenceElement(DF{}, GeometryTypes::simplex(dim),
23 Dim<dim>{}));
24
27 Dim<dim>{});
28
30
34 std::size_t s = refelem.size(dim-1);
35 };
36
37} // namespace Dune
38
39#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:464
Dune namespace.
Definition: alignedallocator.hh:13
Static tag representing a dimension.
Definition: dimension.hh:16
Common base class for edge elements.
Definition: common.hh:19
RefElem refelem
The reference element for this edge element.
Definition: common.hh:26
decltype(referenceElement(DF{}, GeometryTypes::simplex(dim), Dim< dim >{})) RefElem
The type of the referenceElement.
Definition: common.hh:23
std::size_t s
The number of base functions.
Definition: common.hh:34
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 (Jul 15, 22:36, 2024)