differentiator_type Derived Type

type, public :: differentiator_type

Implements differentiation over a periodic stencil. differentiator_type provides access a a unique type-bound procedure diff


Contents


Type-Bound Procedures

procedure, public :: diff => diff_periodic

  • public pure function diff_periodic(self, f, dx) result(df)

    Apply a differentiation stencil along a one dimensional pencil, assuming periodic boundaries. For instance, with a four point stencil and weights

    Arguments

    Type IntentOptional 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

    Return Value real, allocatable, (:)

    Derivative, evaluated on pencil