5#ifndef DUNE_P0LOCALINTERPOLATION_HH
6#define DUNE_P0LOCALINTERPOLATION_HH
9#include <dune/geometry/referenceelements.hh>
10#include <dune/localfunctions/common/localinterpolation.hh>
17 class P0LocalInterpolation
20 P0LocalInterpolation (
const GeometryType& gt) : gt_(gt)
24 template<
typename F,
typename C>
25 void interpolate (
const F& ff, std::vector<C>& out)
const
27 typedef typename LB::Traits::DomainType DomainType;
28 typedef typename LB::Traits::DomainFieldType DF;
29 const int dim=LB::Traits::dimDomain;
31 auto&& f = Impl::makeFunctionWithCallOperator<typename LB::Traits::DomainType>(ff);
33 DomainType x = Dune::ReferenceElements<DF,dim>::general(gt_).position(0,0);