5#ifndef DUNE_MIMETIC_ALL_HH
6#define DUNE_MIMETIC_ALL_HH
16#include "../common/localbasis.hh"
17#include "../common/localkey.hh"
21 template<
class D,
class R,
int dim>
22 class MimeticLocalBasis
28 MimeticLocalBasis (
unsigned int variant_)
36 unsigned int size ()
const {
return variant; }
39 inline void evaluateFunction (
41 std::vector<typename Traits::RangeType>& out)
const
47 inline void evaluateJacobian (
49 std::vector<typename Traits::JacobianType>& out)
const
55 void partial (
const std::array<unsigned int, dim>& ,
57 std::vector<typename Traits::RangeType>& )
const
63 unsigned int order ()
const
73 class MimeticLocalInterpolation
78 template<
typename F,
typename C>
79 void interpolate (
const F& f, std::vector<C>& out)
const {
91 : variant(variant_), li(variant_)
93 for (
unsigned int i=0; i<variant; i++)
102 std::size_t
size ()
const {
return variant; }
110 unsigned int variant;
111 std::vector<Dune::LocalKey> li;
Base class for Dune-Exceptions.
Definition: exceptions.hh:96
A dense n x m matrix.
Definition: fmatrix.hh:117
vector space out of a tensor product of fields.
Definition: fvector.hh:95
Describe position of one degree of freedom.
Definition: localkey.hh:24
@ intersectionCodim
Codimension returned by LocalKey::codim() for degrees of freedom attached to an intersection.
Definition: localkey.hh:37
!
Definition: mimeticall.hh:88
const Dune::LocalKey & localKey(std::size_t i) const
map index i to local key
Definition: mimeticall.hh:105
std::size_t size() const
number of coefficients
Definition: mimeticall.hh:102
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:218
void interpolate(const F &f, const GFS &gfs, XG &xg)
interpolation from a given grid function
Definition: interpolate.hh:177
Dune namespace.
Definition: alignedallocator.hh:13
constexpr std::integral_constant< std::size_t, sizeof...(II)> size(std::integer_sequence< T, II... >)
Return the size of the sequence.
Definition: integersequence.hh:75
Type traits for LocalBasisVirtualInterface.
Definition: localbasis.hh:35
D DomainType
domain type
Definition: localbasis.hh:43
A unique label for each type of element that can occur in a grid.