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

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_.
 

Detailed Description

template<class T, class GridView>
class AMDiS::ConstantGridFunction< T, GridView >

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.


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