DUNE-FEM (unstable)

localkey.hh
1#ifndef DUNE_FEM_SPACE_DOFMAPPER_LOCALKEY_HH
2#define DUNE_FEM_SPACE_DOFMAPPER_LOCALKEY_HH
3
4#if HAVE_DUNE_LOCALFUNCTIONS
5#include <dune/localfunctions/common/localkey.hh>
6#endif // #if HAVE_DUNE_LOCALFUNCTIONS
7
8namespace Dune
9{
10
11 namespace Fem
12 {
13
14#if HAVE_DUNE_LOCALFUNCTIONS
15
16 using Dune::LocalKey;
17
18#else // #if HAVE_DUNE_LOCALFUNCTIONS
19
20 struct LocalKey
21 {
22 LocalKey ( unsigned int subEntity, unsigned int codim, unsigned int index )
23 : subEntity_( subEntity ), codim_( codim ), index_( index )
24 {}
25
26 unsigned int subEntity () const { return subEntity_; }
27 unsigned int codim () const { return codim_; }
28 unsigned int index () const { return index_; }
29
30 private:
31 unsigned int subEntity_, codim_, index_;
32 };
33
34#endif // #else // #if HAVE_DUNE_LOCALFUNCTIONS
35
36 } // namespace Fem
37
38} // namespace Dune
39
40#endif // #ifndef DUNE_FEM_SPACE_DOFMAPPER_LOCALKEY_HH
Describe position of one degree of freedom.
Definition: localkey.hh:24
Dune namespace.
Definition: alignedallocator.hh:13
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 13, 23:29, 2024)