ReMKiT1D
Documentation
Source Files
Modules
Procedures
Abstract Interfaces
Derived Types
findNearestPointsInArray
Interface
53 statements
Source File
support_functions.f90
support_functions
findNearestPointsInArray
Contents
None
interface
public pure module function findNearestPointsInArray(array, point) result(pair)
Implementation →
Arguments
Type
Intent
Optional
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