1#ifndef DUNE_FEM_SPACE_FINITEVOLUME_INTERPOLATION_HH
2#define DUNE_FEM_SPACE_FINITEVOLUME_INTERPOLATION_HH
6#include <dune/fem/function/localfunction/average.hh>
8#include "basisfunctionset.hh"
19 template<
class Gr
idPart,
class Range >
20 class FiniteVolumeLocalInterpolation
22 typedef FiniteVolumeLocalInterpolation< GridPart, Range > ThisType;
26 typedef GridPart GridPartType;
28 typedef typename GridPartType::template Codim< 0 >::EntityType EntityType;
31 typedef FiniteVolumeBasisFunctionSet< EntityType, Range > BasisFunctionSetType;
37 FiniteVolumeLocalInterpolation () {}
39 void bind(
const EntityType &entity ) {}
42 explicit FiniteVolumeLocalInterpolation (
const EntityType &entity )
51 FiniteVolumeLocalInterpolation (
const ThisType & ) =
default;
53 FiniteVolumeLocalInterpolation &operator= (
const ThisType & ) =
default;
70 template<
class LocalFunction,
class LocalDofVector >
71 void operator() (
const LocalFunction &localFunction, LocalDofVector &localDofVector )
const
73 apply( localFunction, localDofVector );
77 template<
class LocalFunction,
class LocalDofVector >
78 void apply (
const LocalFunction &localFunction, LocalDofVector &localDofVector )
const
82 LocalAverage< LocalFunction, GridPartType >::apply( localFunction, value );
83 for(
int i = 0; i < Range::dimension; ++i )
84 localDofVector[ i ] = value[ i ];
FunctionSpaceType::RangeType RangeType
type of range vectors, i.e., type of function values
Definition: localfunction.hh:110
Dune namespace.
Definition: alignedallocator.hh:13