5#ifndef DUNE_P0LOCALINTERPOLATION_HH
6#define DUNE_P0LOCALINTERPOLATION_HH
9#include <dune/geometry/referenceelements.hh>
19 class P0LocalInterpolation
22 P0LocalInterpolation (
const GeometryType& gt) : gt_(gt)
26 template<
typename F,
typename C>
27 void interpolate (
const F& f, std::vector<C>& out)
const
29 typedef typename LB::Traits::DomainType DomainType;
30 typedef typename LB::Traits::DomainFieldType DF;
31 const int dim=LB::Traits::dimDomain;
33 DomainType x = Dune::ReferenceElements<DF,dim>::general(gt_).position(0,0);