Dune Core Modules (2.6.0)

monomiallocalcoefficients.hh
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3#ifndef DUNE_LOCALFUNCTIONS_MONOMIAL_MONOMIALLOCALCOEFFICIENTS_HH
4#define DUNE_LOCALFUNCTIONS_MONOMIAL_MONOMIALLOCALCOEFFICIENTS_HH
5
6#include <cstddef>
7#include <vector>
8
9#include "../common/localkey.hh"
10
11namespace Dune
12{
13
20 template<int static_size>
22 {
23 public:
26 : index(static_size, LocalKey(0,0,0))
27 {
28 for(int i = 0; i < static_size; ++i)
29 index[i].index(i);
30 }
31
33 std::size_t size () const
34 {
35 return static_size;
36 }
37
39 const LocalKey& localKey (std::size_t i) const
40 {
41 return index[i];
42 }
43
44 private:
45 std::vector<LocalKey> index;
46 };
47
48}
49#endif //DUNE_LOCALFUNCTIONS_MONOMIAL_MONOMIALLOCALCOEFFICIENTS_HH
Describe position of one degree of freedom.
Definition: localkey.hh:21
Layout map for monomial finite elements.
Definition: monomiallocalcoefficients.hh:22
std::size_t size() const
number of coefficients
Definition: monomiallocalcoefficients.hh:33
MonomialLocalCoefficients()
Standard constructor.
Definition: monomiallocalcoefficients.hh:25
const LocalKey & localKey(std::size_t i) const
get i'th index
Definition: monomiallocalcoefficients.hh:39
Dune namespace.
Definition: alignedallocator.hh:10
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 24, 23:30, 2024)