DUNE PDELab (2.8)

Dune::GlobalGeometryTypeIndex Class Reference

Compute indices for geometry types, taking the dimension into account. More...

#include <dune/geometry/typeindex.hh>

Static Public Member Functions

static constexpr std::size_t offset (std::size_t dim)
 Compute the starting index for a given dimension including irregular geometry types.
 
static constexpr std::size_t size (std::size_t maxdim)
 Compute total number of geometry types up to and including the given dimension. More...
 
static constexpr std::size_t index (const GeometryType &gt)
 Compute the index for the given geometry type over all dimensions. More...
 

Detailed Description

Compute indices for geometry types, taking the dimension into account.

Member Function Documentation

◆ index()

static constexpr std::size_t Dune::GlobalGeometryTypeIndex::index ( const GeometryType gt)
inlinestaticconstexpr

Compute the index for the given geometry type over all dimensions.

Geometry types from different dimensions will get different indices, and lower dimensions will always have lower indices than higher dimensions. If that is not what you want, maybe you should look at LocalGeometryTypeIndex.

References Dune::FloatCmp::gt(), Dune::LocalGeometryTypeIndex::index(), and offset().

Referenced by Dune::PDELab::L2Projection< GFS, U >::inverseMassMatrices(), Dune::PDELab::LeafGridViewOrdering< LocalOrdering >::update(), and Dune::PDELab::NonoverlappingConformingDirichletConstraints< GV >::volume().

◆ size()

static constexpr std::size_t Dune::GlobalGeometryTypeIndex::size ( std::size_t  maxdim)
inlinestaticconstexpr

Compute total number of geometry types up to and including the given dimension.

This includes irregular geometry types such as "None".

References offset().

Referenced by Dune::PDELab::LeafGridViewOrdering< LocalOrdering >::update().


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 21, 23:30, 2024)