DUNE PDELab (2.8)

dualp1localcoefficients.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_DUAL_P1_LOCALCOEFFICIENTS_HH
4#define DUNE_DUAL_P1_LOCALCOEFFICIENTS_HH
5
6#include <cstddef>
7#include <vector>
8
9#include <dune/localfunctions/common/localkey.hh>
10
11namespace Dune
12{
13
19 template <int dim>
21 {
22 public:
25 {
26 for (std::size_t i=0; i<size(); i++)
27 li[i] = LocalKey(i,dim,0);
28 }
29
31 std::size_t size () const
32 {
33 return dim+1;
34 }
35
37 const LocalKey& localKey (std::size_t i) const
38 {
39 return li[i];
40 }
41
42 private:
43 std::vector<LocalKey> li;
44 };
45
46}
47
48#endif
Local coefficients for dual simplex P1 elements.
Definition: dualp1localcoefficients.hh:21
DualP1LocalCoefficients()
Standard constructor.
Definition: dualp1localcoefficients.hh:24
const LocalKey & localKey(std::size_t i) const
get i'th index
Definition: dualp1localcoefficients.hh:37
std::size_t size() const
number of coefficients
Definition: dualp1localcoefficients.hh:31
Describe position of one degree of freedom.
Definition: localkey.hh:21
Dune namespace.
Definition: alignedallocator.hh:11
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 21, 23:30, 2024)