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);
31 DomainType x = Dune::ReferenceElements<DF,dim>::general(gt_).position(0,0);