Dune Core Modules (2.6.0)

p0localcoefficients.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_P0LOCALCOEFFICIENTS_HH
4#define DUNE_P0LOCALCOEFFICIENTS_HH
5
6#include <cstddef>
7#include <iostream>
8#include <vector>
9
10#include <dune/localfunctions/common/localkey.hh>
11
12namespace Dune
13{
14
22 {
23 public:
25 P0LocalCoefficients () : index(0,0,0)
26 {}
27
29 std::size_t size () const
30 {
31 return 1;
32 }
33
35 const LocalKey& localKey (std::size_t i) const
36 {
37 return index;
38 }
39
40 private:
41 LocalKey index;
42 };
43
44}
45#endif
Describe position of one degree of freedom.
Definition: localkey.hh:21
Layout map for P0 elements.
Definition: p0localcoefficients.hh:22
P0LocalCoefficients()
Standard constructor.
Definition: p0localcoefficients.hh:25
const LocalKey & localKey(std::size_t i) const
get i'th index
Definition: p0localcoefficients.hh:35
std::size_t size() const
number of coefficients
Definition: p0localcoefficients.hh:29
Dune namespace.
Definition: alignedallocator.hh:10
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 26, 23:30, 2024)