base_interpolator Derived Type

type, public, abstract :: base_interpolator

A base object for interpolation.


Contents


Type-Bound Procedures

procedure, public :: interpolate => bi_interp

  • private subroutine bi_interp(this, x, yi, err)

    Performs the interpolation.

    Arguments

    Type IntentOptional Attributes Name
    class(base_interpolator), intent(inout) :: this

    The base_interpolator object.

    real(kind=real64), intent(in), dimension(:) :: x

    An N-element array containing the x values at which to compute the interpolation.

    real(kind=real64), intent(out), dimension(:) :: yi

    An N-element array containing the interpolated data.

    class(errors), intent(inout), optional, target :: err

    An error handling object.

procedure(interp_routine), public, deferred, pass :: interpolate_value

  • function interp_routine(this, x) result(rst) Prototype

    Performs a single interpolation.

    Arguments

    Type IntentOptional Attributes Name
    class(base_interpolator), intent(inout) :: this

    The base_interpolator object.

    real(kind=real64), intent(in) :: x

    The value at which to compute the interpolation.

    Return Value real(kind=real64)

    The interpolated result.