DUNE PDELab (git)

dimension.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 © DUNE Project contributors, see file LICENSE.md in module root
4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
5#ifndef DUNE_GEOMETRY_DIMENSION_HH
6#define DUNE_GEOMETRY_DIMENSION_HH
7
8#include <type_traits>
9
10namespace Dune {
11
13 template<int dim>
14 struct Dim
15 : public std::integral_constant<int,dim>
16 {
17 typedef Dim type;
18 };
19
21 template<int codim>
22 struct Codim
23 : public std::integral_constant<int,codim>
24 {
25 typedef Codim type;
26 };
27
28}
29
30#endif // DUNE_GEOMETRY_DIMENSION_HH
Dune namespace.
Definition: alignedallocator.hh:13
Static tag representing a codimension.
Definition: dimension.hh:24
Static tag representing a dimension.
Definition: dimension.hh:16
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 23, 23:29, 2024)