findNearestPointsInArray Interface

interface
public pure module function findNearestPointsInArray(array, point) result(pair)

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in), dimension(:) :: array
real(kind=rk), intent(in) :: point

Return Value integer(kind=ik),dimension(2)

Description

Finds indices of two of the values nearest to a point in a monotonic array