A Gridfunction that returns the derivative when calling localFunction. More...
#include <DerivativeGridFunction.hpp>
Public Types | |
using | Range = typename Traits::Range |
The Range of the derivative of the GridFunction. | |
using | Domain = GridFctDomain |
The domain of the GridFunction. | |
using | EntitySet = typename GridFunction::EntitySet |
The EntitySet of the GridFunction. | |
Public Member Functions | |
DerivativeGridFunction (GridFunction const &gridFct, Type const &type) | |
Constructor. Stores a copy of gridFct. | |
Range | operator() (Domain const &x) const |
Evaluate derivative in global coordinates. NOTE: expensive. | |
LocalFunction | makeLocalFunction () const |
Return the derivative-localFunction of the GridFunction. | |
EntitySet const & | entitySet () const |
Return the EntitySet of the GridFunction. | |
A Gridfunction that returns the derivative when calling localFunction.
Wraps the GridFunction so that localFunction returns a LocalFunction representing the derivative of the LocalFunction of the GridFunction.
GridFunction | The GridFunction that is wrapped. |
The | type of derivative, i.e. one of tag::gradient, tag::partial{i}, or tag::divergence |
Requirements:
GridFunction
models Concepts::GridFunction and the LocalFunction has a derivative.