Implements differentiation over a periodic stencil.
differentiator_type
provides access a a unique type-bound
procedure diff
Apply a differentiation stencil along a one dimensional pencil, assuming periodic boundaries. For instance, with a four point stencil and weights
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(differentiator_type), | intent(in) | :: | self | |||
real, | intent(in) | :: | f(:) |
Function to be derive, evaluated on pencil |
||
real, | intent(in) | :: | dx |
Step size |
Derivative, evaluated on pencil