Gridfunction returning a constant value per element. More...
#include <ElementGridFunction.hpp>
Public Member Functions | |
| ElementGridFunction (GridView const &gridView, Container const &container) | |
Constructor. Stores the function fct and creates an EntitySet. | |
| template<class G , class T , std::enable_if_t< std::is_same_v< typename G::LeafGridView, GridView >, int > = 0, std::enable_if_t< std::is_same_v< typename ElementVector< G, T >::Data, Container >, int > = 0> | |
| ElementGridFunction (ElementVector< G, T > const &elementVector) | |
| Range | operator() (Domain const &) const |
Return the constant value_ | |
| EntitySet const & | entitySet () const |
| LocalFunction | makeLocalFunction () const |
| Create an ElementLocalFunction. | |
Gridfunction returning a constant value per element.
The GridFunction represents for each element the constant value that is stored in the Container. This container is indexed by the IndexSet of the given GridView for the element it is bound to.