A Gridfunction that returns the derivative when calling localFunction. More...
#include <DerivativeGridFunction.hpp>
Public Member Functions | |
DerivativeGridFunction (GridFunction const &gridFct, Type const &type) | |
Constructor. Stores a copy of gridFct. | |
DerivativeGridFunction (GridFunction &&gridFct, Type const &type) | |
Constructor. Moves the gridFct into an instance variable. | |
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.