3#ifndef DUNE_P0LOCALINTERPOLATION_HH
4#define DUNE_P0LOCALINTERPOLATION_HH
7#include <dune/geometry/referenceelements.hh>
14 class P0LocalInterpolation
17 P0LocalInterpolation (
const GeometryType&
gt) : gt_(
gt)
21 template<
typename F,
typename C>
22 void interpolate (
const F& f, std::vector<C>& out)
const
24 typedef typename LB::Traits::DomainType DomainType;
25 typedef typename LB::Traits::RangeType RangeType;
26 typedef typename LB::Traits::DomainFieldType DF;
27 const int dim=LB::Traits::dimDomain;
33 f.evaluate(x,y); out[0] = y;
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:178
bool gt(const T &first, const T &second, typename EpsilonType< T >::Type epsilon)
test if first greater than second
Definition: float_cmp.cc:147
Dune namespace.
Definition: alignedallocator.hh:10
static const ReferenceElement & general(const GeometryType &type)
get general reference elements
Definition: referenceelements.hh:196