DUNE-FEM (unstable)

Dune::Fem::LocalFunctionConverter< HostLocalFunction, Converter, Storage > Class Template Reference

implementation of a Dune::Fem::LocalFunction on a FunctionSpace V restircted/prolongated from an other function space W. More...

#include <dune/fem/function/localfunction/converter.hh>

Detailed Description

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 >
void evaluate ( const Point &x, RangeType &ret ) const;
template< class Point >
void jacobian ( const Point &x, JacobianRangeType &jac ) const;
tempalte< class Point >
void hessian ( const Point &x, HessianRangeType &hess ) const;
const EntityType &entity () const;
int size() const;
void init ( const EntityType & entity );
Definition: explicitfieldvector.hh:75
constexpr std::integral_constant< std::size_t, sizeof...(II)> size(std::integer_sequence< T, II... >)
Return the size of the sequence.
Definition: integersequence.hh:75

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

Dune::Fem::localFunctionConverter

may be used to conveniently create a new instance of a LocalFunctionConverter. Use

auto g = localFunctionConverter( localFunction, Converter )

to create an converted local function.

Template Parameters
HostLocalFunctionoriginal local function
Converterstructure which provides the restirction/prolongation from W to V
StoragePolicystorage policy

The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 13, 23:29, 2024)