NDInterpolationDerivation Derived Type

type, public, extends(Derivation) :: NDInterpolationDerivation

Interpolates n-dimensional data linearly based on n-input variables (must all be the same length)


Components

Type Visibility Attributes Name Initial
logical, public :: userDefined = .false.

True only if user explicitly sets it to true

type(InterpolationND), public, allocatable :: interpObj

n-dimensional interpolation object respnsible for interpolation

type(FlatNDData), public, allocatable :: data

Data to interpolate on


Type-Bound Procedures

procedure, public :: isDefined => isDefinedObject

  • interface

    private pure module function isDefinedObject(this) result(defined)

    Getter for userDefined

    Arguments

    Type IntentOptional Attributes Name
    class(Object), intent(in) :: this

    Return Value logical

procedure, public :: makeDefined => makeDefinedObject

  • interface

    private pure module subroutine makeDefinedObject(this)

    Set userDefined to .true.

    Arguments

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

procedure, public :: makeUndefined => makeUndefinedObject

  • interface

    private pure module subroutine makeUndefinedObject(this)

    Set userDefined to .false.

    Arguments

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

procedure, public :: init => initInterpDeriv

procedure, public :: calculate => calculateInterp

  • interface

    private module function calculateInterp(this, inputArray, indices) result(output)

    Arguments

    Type IntentOptional Attributes Name
    class(NDInterpolationDerivation), intent(inout) :: this
    type(RealArray), intent(in), dimension(:) :: inputArray
    integer(kind=ik), intent(in), dimension(:) :: indices

    Return Value real(kind=rk), allocatable, dimension(:)