ReMKiT1D
Documentation
Source Files
Modules
Procedures
Abstract Interfaces
Derived Types
findNearestPointsInArray
Module Function
21 statements
Source File
support_functions_procedures.f90
support_functions_procedures
findNearestPointsInArray
Contents
pure module function findNearestPointsInArray(array, point) result(pair)
Interface →
Finds indices of two of the values nearest to a point in a monotonic array
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)