Dune Core Modules (2.11.0)

types.hh
1#pragma once
2
3#include <cstdint>
4#include <map>
5#include <string>
6#include <vector>
7
10
11namespace Dune
12{
13 namespace Gmsh4
14 {
16 GeometryType gmshNumberToGeometryType (int elementType);
17
18 [[deprecated("Use gmshNumberToGeometryType() instead.")]] inline GeometryType to_geometry (int elementType)
19 {
20 return gmshNumberToGeometryType(elementType);
21 }
22
25 {
26 public:
27 CellType (GeometryType const& t);
28
31 {
32 return type_;
33 }
34
36 int gmshVertexToDuneVertex (int idx) const
37 {
38 return permutation_[idx];
39 }
40
41 [[deprecated("Use gmshVertexToDuneVertex() instead.")]] inline int permutation (int idx) const
42 {
43 return gmshVertexToDuneVertex(idx);
44 }
45
47 bool identityPermutation () const
48 {
49 return identityPermutation_;
50 }
51
52 [[deprecated("Use identityPermutation() instead.")]] inline bool noPermutation () const
53 {
54 return identityPermutation();
55 }
56
57 private:
58 GeometryType type_;
59 std::vector<int> permutation_;
60 bool identityPermutation_;
61 };
62
63 } // end namespace Gmsh4
64} // end namespace Dune
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:114
Mapping of Dune geometry types to Gmsh cell types.
Definition: types.hh:25
GeometryType type() const
Return Gmsh Cell type.
Definition: types.hh:30
bool identityPermutation() const
Return true if Dune and Gmsh use the same vertex numbering for this element type.
Definition: types.hh:47
int gmshVertexToDuneVertex(int idx) const
Return the Dune local number of a cell's vertex given in Gmsh numbering.
Definition: types.hh:36
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:132
Type traits to determine the type of reals (when working with complex numbers)
Dune namespace
Definition: alignedallocator.hh:13
A unique label for each type of element that can occur in a grid.
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden & Uni Heidelberg  |  generated with Hugo v0.111.3 (Feb 14, 23:39, 2026)