Gridfunction returning a constant value. More...
#include <ConstantGridFunction.hpp>
Public Types | |
enum | { hasDerivative = false } |
using | EntitySet = Dune::Functions::GridViewEntitySet< GridView, 0 > |
using | Domain = typename EntitySet::GlobalCoordinate |
using | Range = Underlying_t< T > |
Public Member Functions | |
ConstantGridFunction (T const &value, GridView const &gridView) | |
Constructor. Stores the function fct and creates an EntitySet . | |
Range const & | operator() (Domain const &) const |
Return the constant value_ | |
EntitySet const & | entitySet () const |
LocalFunction | makeLocalFunction () const |
Create an ConstantLocalFunction with the stores value_ . | |
Gridfunction returning a constant value.
A stored constant is return in global and local evaluation of this functor. Maybe used with arithmetic types and vectors/matrices of arithmetic types. It is also allowed to pass a std::reference_wrapper to allow to modify the value after construction.