3#ifndef DUNE_P0LOCALINTERPOLATION_HH
4#define DUNE_P0LOCALINTERPOLATION_HH
7#include <dune/geometry/referenceelements.hh>
8#include <dune/localfunctions/common/localinterpolation.hh>
15 class P0LocalInterpolation
18 P0LocalInterpolation (
const GeometryType&
gt) : gt_(
gt)
22 template<
typename F,
typename C>
23 void interpolate (
const F& ff, std::vector<C>& out)
const
25 typedef typename LB::Traits::DomainType DomainType;
26 typedef typename LB::Traits::DomainFieldType DF;
27 const int dim=LB::Traits::dimDomain;
29 auto&& f = Impl::makeFunctionWithCallOperator<typename LB::Traits::DomainType>(ff);
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:180
bool gt(const T &first, const T &second, typename EpsilonType< T >::Type epsilon)
test if first greater than second
Definition: float_cmp.cc:156
void interpolate(const F &f, const GFS &gfs, XG &xg)
interpolation from a given grid function
Definition: interpolate.hh:174
Dune namespace.
Definition: alignedallocator.hh:14
static const ReferenceElement & general(const GeometryType &type)
get general reference elements
Definition: referenceelements.hh:196