A mutable view on the subspace of a DOFVector,. More...
#include <DiscreteFunction.hpp>
Classes | |
class | DerivativeLocalFunctionBase |
class | DivergenceLocalFunction |
class | GradientLocalFunction |
class | LocalFunction |
class | PartialLocalFunction |
Public Member Functions | |
template<class... Path> | |
DiscreteFunction (Coefficients &dofVector, GlobalBasis const &basis, Path... path) | |
Constructor. Stores a pointer to the mutable dofvector . | |
template<class DV , class... Path, class Coeff_ = TYPEOF(std::declval<DV>().coefficients()), class GB_ = TYPEOF(*std::declval<DV>().basis())> | |
DiscreteFunction (DV &&dofVector, Path... path) | |
Construct a DiscreteFunction directly from a DOFVector. | |
template<class Expr , class Tag = tag::average> | |
void | interpolate_noalias (Expr &&expr, Tag strategy={}) |
Interpolation of GridFunction to DOFVector, assuming that there is no reference to this DOFVector in the expression. More... | |
template<class Expr , class Tag = tag::average> | |
void | interpolate (Expr &&expr, Tag strategy={}) |
Interpolation of GridFunction to DOFVector. More... | |
template<class Expr > | |
Self & | operator<< (Expr &&expr) |
Interpolation of GridFunction to DOFVector, alias to interpolate() | |
template<class Expr > | |
Self & | operator+= (Expr &&expr) |
interpolate (*this) + expr to DOFVector | |
template<class Expr > | |
Self & | operator-= (Expr &&expr) |
interpolate (*this) - expr to DOFVector | |
Coefficients & | coefficients () |
Return the mutable DOFVector. | |
template<class... Indices> | |
auto | child (Indices... ii) |
Protected Attributes | |
Coefficients * | mutableCoeff_ |
A mutable view on the subspace of a DOFVector,.
A view on a subspace of a DOFVector.
Coeff | Const or mutable coefficient type of the DOFVector |
GB | Thy type of the global basis |
TreePath | A realization of Dune::TypeTree::HybridTreePath |
Requirements:
void interpolate | ( | Expr && | expr, |
Tag | strategy = {} |
||
) |
Interpolation of GridFunction to DOFVector.
Example:
Allows to have a reference to the DOFVector in the expression, e.g. as DiscreteFunction or gradientOf() of a DiscreteFunction.
References DiscreteFunction< Coeff, GB, TreePath >::interpolate_noalias().
Referenced by DiscreteFunction< Coeff, GB, TreePath >::DiscreteFunction(), DiscreteFunction< Coeff, GB, TreePath >::interpolate_noalias(), DiscreteFunction< Coeff, GB, TreePath >::operator+=(), DiscreteFunction< Coeff, GB, TreePath >::operator-=(), and DiscreteFunction< Coeff, GB, TreePath >::operator<<().
void interpolate_noalias | ( | Expr && | expr, |
Tag | strategy = {} |
||
) |
Interpolation of GridFunction to DOFVector, assuming that there is no reference to this DOFVector in the expression.
Example:
References DiscreteFunction< Coeff, GB, TreePath >::interpolate(), AMDiS::interpolate(), and AMDiS::makeGridFunction().
Referenced by DiscreteFunction< Coeff, GB, TreePath >::DiscreteFunction(), and DiscreteFunction< Coeff, GB, TreePath >::interpolate().