AMDiS 2.10
The Adaptive Multi-Dimensional Simulation Toolbox
CoarsenedGridFunction< GV, GF >::CoarsenedLocalFunction< ES, LF > Class Template Reference

Classes

struct  ChildElement
 

Public Types

using Domain = LocalDomain
 
using Range = CoarsenedGridFunction::Range
 
using Element = CoarsenedGridFunction::Element
 
using Mapping = std::function< Domain(Domain const &)>
 

Public Member Functions

 CoarsenedLocalFunction (ES const &entitySet, LF const &localFct, int maxLevel)
 Constructor. Stores the localFct by value.
 
 CoarsenedLocalFunction (ES const &entitySet, LF &&localFct, int maxLevel)
 
void bind (Element const &element)
 Bind the wrapped local-function to grid element. More...
 
void unbind ()
 Unbind the wrapped local-function.
 
bool bound () const
 Check whether the LocalFunction is bound to an element.
 
Range operator() (Domain const &x) const
 Evaluate LocalFunction at bound element.
 
Element const & localContext () const
 Return the element this LocalFunction is bound to.
 
template<class LF_ = LF>
auto makeDerivative () const -> CoarsenedLocalFunction< ES, TYPEOF(derivative(std::declval< LF_ const & >()))>
 Construct a derivative by wrapping the derivative of the wrapped local-function.
 

Protected Member Functions

Mapping makeMapping (Element const &coarse, Element fine) const
 

Member Function Documentation

◆ bind()

void bind ( Element const &  element)
inline

Bind the wrapped local-function to grid element.

The given element might not be the element the wrapped local-function can be bound to. It has to be iterated in the hierarchy down (to finer elements) until the entity-set of the local function contains the found father element.


The documentation for this class was generated from the following file: