dune-localfunctions 2.9.0
Loading...
Searching...
No Matches
dualp1localcoefficients.hh
Go to the documentation of this file.
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3// SPDX-FileCopyrightInfo: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
5#ifndef DUNE_DUAL_P1_LOCALCOEFFICIENTS_HH
6#define DUNE_DUAL_P1_LOCALCOEFFICIENTS_HH
7
8#include <cstddef>
9#include <vector>
10
12
13namespace Dune
14{
15
21 template <int dim>
23 {
24 public:
27 {
28 for (std::size_t i=0; i<size(); i++)
29 li[i] = LocalKey(i,dim,0);
30 }
31
33 std::size_t size () const
34 {
35 return dim+1;
36 }
37
39 const LocalKey& localKey (std::size_t i) const
40 {
41 return li[i];
42 }
43
44 private:
45 std::vector<LocalKey> li;
46 };
47
48}
49
50#endif
Definition bdfmcube.hh:18
Describe position of one degree of freedom.
Definition localkey.hh:23
Local coefficients for dual simplex P1 elements.
Definition dualp1localcoefficients.hh:23
DualP1LocalCoefficients()
Standard constructor.
Definition dualp1localcoefficients.hh:26
const LocalKey & localKey(std::size_t i) const
get i'th index
Definition dualp1localcoefficients.hh:39
std::size_t size() const
number of coefficients
Definition dualp1localcoefficients.hh:33