getNearestPoints Module Function

pure module function getNearestPoints(this, v) result(pair)

Return two nearest points for given velocity value v. If the first point is 0, the velocity is below the lowest velocity in the grid, and if the second point is 0 the velocity is above the greatest v in the grid.

Arguments

Type IntentOptional Attributes Name
class(VSpace), intent(in) :: this
real(kind=rk), intent(in) :: v

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