3#ifndef DUNE_MIMETIC_ALL_HH
4#define DUNE_MIMETIC_ALL_HH
14#include "../common/localbasis.hh"
15#include "../common/localkey.hh"
19 template<
class D,
class R,
int dim>
20 class MimeticLocalBasis
26 MimeticLocalBasis (
unsigned int variant_)
34 unsigned int size ()
const {
return variant; }
37 inline void evaluateFunction (
39 std::vector<typename Traits::RangeType>& out)
const
45 inline void evaluateJacobian (
47 std::vector<typename Traits::JacobianType>& out)
const
53 void partial (
const std::array<unsigned int, dim>& ,
55 std::vector<typename Traits::RangeType>& )
const
61 unsigned int order ()
const
71 class MimeticLocalInterpolation
76 template<
typename F,
typename C>
77 void interpolate (
const F& f, std::vector<C>& out)
const {
89 : variant(variant_), li(variant_)
91 for (
unsigned int i=0; i<variant; i++)
100 std::size_t
size ()
const {
return variant; }
108 unsigned int variant;
109 std::vector<Dune::LocalKey> li;
Base class for Dune-Exceptions.
Definition: exceptions.hh:94
A dense n x m matrix.
Definition: fmatrix.hh:68
vector space out of a tensor product of fields.
Definition: fvector.hh:93
Describe position of one degree of freedom.
Definition: localkey.hh:21
@ intersectionCodim
Codimension returned by LocalKey::codim() for degrees of freedom attached to an intersection.
Definition: localkey.hh:34
!
Definition: mimeticall.hh:86
const Dune::LocalKey & localKey(std::size_t i) const
map index i to local key
Definition: mimeticall.hh:103
std::size_t size() const
number of coefficients
Definition: mimeticall.hh:100
A few common exception classes.
Implements a matrix constructed from a given type representing a field and compile-time given number ...
Implements a vector constructed from a given type representing a field and a compile-time given size.
#define DUNE_THROW(E, m)
Definition: exceptions.hh:216
Dune namespace.
Definition: alignedallocator.hh:10
Type traits for LocalBasisVirtualInterface.
Definition: localbasis.hh:32
D DomainType
domain type
Definition: localbasis.hh:43
A unique label for each type of element that can occur in a grid.