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

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:

- /home/docs/checkouts/readthedocs.org/user_builds/amdis-test/checkouts/develop/amdis/gridfunctions/ConstantGridFunction.hpp