dune-localfunctions
2.11
Toggle main menu visibility
Loading...
Searching...
No Matches
dune
localfunctions
whitney
edges0.5
whitney/edges0.5/coefficients.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 © DUNE Project contributors, see file LICENSE.md in module root
4
// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
5
6
#ifndef DUNE_LOCALFUNCTIONS_WHITNEY_EDGES0_5_COEFFICIENTS_HH
7
#define DUNE_LOCALFUNCTIONS_WHITNEY_EDGES0_5_COEFFICIENTS_HH
8
9
#include <cstddef>
10
#include <vector>
11
12
#include <
dune/localfunctions/common/localkey.hh
>
13
#include <
dune/localfunctions/whitney/edges0.5/common.hh
>
14
15
namespace
Dune
{
16
18
//
19
// Coefficients
20
//
21
23
30
template
<std::
size_t
dim>
31
class
EdgeS0_5Coefficients
:
private
EdgeS0_5Common
<dim> {
32
using
EdgeS0_5Common
<dim>
::s
;
33
34
std::vector<LocalKey> li;
35
36
public
:
38
EdgeS0_5Coefficients
() : li(
s
) {
39
for
(std::size_t i = 0; i <
s
; i++)
40
li[i] =
LocalKey
(i, dim-1, 0);
41
}
42
44
std::size_t
size
()
const
{
return
s
; }
45
47
const
LocalKey
&
localKey
(std::size_t i)
const
{
return
li[i]; }
48
};
49
50
}
// namespace Dune
51
52
#endif
// DUNE_LOCALFUNCTIONS_WHITNEY_EDGES0_5_COEFFICIENTS_HH
localkey.hh
common.hh
Dune
Definition
bdfmcube.hh:18
Dune::LocalKey
Describe position of one degree of freedom.
Definition
localkey.hh:24
Dune::EdgeS0_5Coefficients::localKey
const LocalKey & localKey(std::size_t i) const
get i'th index
Definition
whitney/edges0.5/coefficients.hh:47
Dune::EdgeS0_5Coefficients::EdgeS0_5Coefficients
EdgeS0_5Coefficients()
Standard constructor.
Definition
whitney/edges0.5/coefficients.hh:38
Dune::EdgeS0_5Coefficients::size
std::size_t size() const
number of coefficients
Definition
whitney/edges0.5/coefficients.hh:44
Dune::EdgeS0_5Common
Common base class for edge elements.
Definition
common.hh:23
Dune::EdgeS0_5Common::s
std::size_t s
The number of base functions.
Definition
common.hh:38
Generated by
1.17.0