DUNE PDELab (2.8)

Dune::LocalKey Class Reference

Describe position of one degree of freedom. More...

#include <dune/localfunctions/common/localkey.hh>

Public Types

enum  { intersectionCodim =666 }
 Enumerate 'special values' for the codimension method. More...
 

Public Member Functions

 LocalKey ()
 Standard constructor for uninitialized local index.
 
 LocalKey (unsigned int s, unsigned int c, unsigned int i)
 Initialize all components. More...
 
unsigned int subEntity () const
 Return number of associated subentity.
 
unsigned int codim () const
 Return codim of associated entity.
 
unsigned int index () const
 Return offset within subentity.
 
void index (unsigned int i)
 Set index component.
 
bool operator< (const LocalKey &other) const
 Less-than operator so we can use this class as a key type in stl containers.
 

Detailed Description

Describe position of one degree of freedom.

A LocalKey associates a degree of freedom with an index of a local basis function.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Enumerate 'special values' for the codimension method.

Enumerator
intersectionCodim 

Codimension returned by LocalKey::codim() for degrees of freedom attached to an intersection.

 The standard interface of dune-localfunctions assumes that degrees of freedom are attached to subentities
 of an element.  This subentities can be described by a codimension and a subentity number.
 However some elements, like the mimetic finite elements, attach their degrees of freedom to intersections.
 While intersections do have a codimension, namely 1, having the method codim() return 1 in this case
 would be ambiguous.  Hence 'intersectionCodim' is returned instead.

Constructor & Destructor Documentation

◆ LocalKey()

Dune::LocalKey::LocalKey ( unsigned int  s,
unsigned int  c,
unsigned int  i 
)
inline

Initialize all components.

Parameters
sLocal number of the associated subentity
cCodimension of the associated subentity
iIndex in the set of all functions associated to this subentity

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)