template<class HostLocalFunction, class Converter, template< class > class Storage = __InstationaryFunction::HoldCopy>
class Dune::Fem::LocalFunctionConverter< HostLocalFunction, Converter, Storage >
implementation of a Dune::Fem::LocalFunction on a FunctionSpace V restircted/prolongated from an other function space W.
The HostLocalFunction is assumed to fulfill the LocalFunctioninterface. Basically the following functions are implemented on the HostLocalFunction:
template< class Point >
template< class Point >
tempalte< class Point >
int size() const;
FunctionSpaceType::RangeType RangeType
Definition: converter.hh:94
void init(const EntityType &entity)
Definition: converter.hh:162
HostLocalFunction::EntityType EntityType
Definition: converter.hh:90
void hessian(const Point &p, HessianRangeType &hes) const
Definition: converter.hh:144
EntityType entity() const
Definition: converter.hh:160
FunctionSpaceType::JacobianRangeType JacobianRangeType
Definition: converter.hh:95
FunctionSpaceType::HessianRangeType HessianRangeType
Definition: converter.hh:96
void jacobian(const Point &p, JacobianRangeType &jac) const
Definition: converter.hh:136
void evaluate(const Point &p, RangeType &ret) const
Definition: converter.hh:121
The template paramter Converter, is used to get the restriction/prolongation onto the space V. Converter is expected to provide the method {Hessian,Jacobian,.}RangeType converter( Host{Hessian,Jacobian,. }RangeType ); which does the acctual mapping onto V. The dimension of the new Range is obtained from the method Convertor::operator( HostRangeType )::dimension.
Users may prescribe how the parameter localFunction is stored by providing a fourth template parameter, the storage policy. Further informations on the storage policy can be found in the file dune/fem/function/common/instationary.hh.
The free-standing function
LocalFunctionConverter< HostLocalFunction, Converter, __InstationaryFunction::HoldCopy > localFunctionConverter(HostLocalFunction hostLocalFunction, const Converter &converter=Converter())
Definition: converter.hh:199
may be used to conveniently create a new instance of a LocalFunctionConverter. Use
static GridFunctionView< GF > localFunction(const GF &gf)
Definition: gridfunctionview.hh:118
to create an converted local function.
- Template Parameters
-
HostLocalFunction | original local function |
Converter | structure which provides the restirction/prolongation from W to V |
StoragePolicy | storage policy |