AMDiS  2.10
The Adaptive Multi-Dimensional Simulation Toolbox
ElementLocalFunction< R(D), IndexSet, Container > Class Template Reference

LocalFunction of a Gridfunction returning a constant value per element. More...

#include <ElementGridFunction.hpp>

Public Types

enum  { hasDerivative = true }
 This LocalFunction has its own derivativeOf() function.
 
using Domain = D
 The LocalDomain this LocalFunction can be evaluated in.
 
using Range = R
 The range type of the LocalFunction.
 
using Element = typename IndexSet::template Codim< 0 >::Entity
 Type of the entity to bind.
 

Public Member Functions

 ElementLocalFunction (IndexSet const &indexSet, Container const &container)
 Constructor. Stores the constant value.
 
Element const & localContext () const
 Return the bound element.
 
void bind (Element const &element)
 Extract the constant data associated to the element.
 
void unbind ()
 
bool bound () const
 Check whether this localfunction is bound to an element.
 
Range const & operator() (Domain const &) const
 Return the constant value_.
 
template<class Type >
auto makeDerivative (Type const &) const
 Create a ConstantLocalFunction representing the derivative of a constant function, that ist, the value 0.
 
int order () const
 Return the constant polynomial order 0.
 

Detailed Description

template<class R, class D, class IndexSet, class Container>
class AMDiS::ElementLocalFunction< R(D), IndexSet, Container >

LocalFunction of a Gridfunction returning a constant value per element.


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