AMDiS 2.10
The Adaptive Multi-Dimensional Simulation Toolbox
ElementGridFunction< GridView, Container > Class Template Reference

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

#include <ElementGridFunction.hpp>

Public Types

enum  { hasDerivative = false }
 
using EntitySet = Dune::Functions::GridViewEntitySet< GridView, 0 >
 
using Domain = typename EntitySet::GlobalCoordinate
 
using Range = typename Container::value_type
 

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.
 

Detailed Description

template<class GridView, class Container>
class AMDiS::ElementGridFunction< GridView, Container >

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.


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