Function for fast table-lookup, returns the corresponding y-value in y_values based on a given based on a given . If the allow_outside flag is given as .true. then values on the edge of the table are returned when the lookup value is outside the array. Uses simple linear interpolation.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | x | value to look up |
||
real(kind=dp), | intent(in) | :: | x_values(:) | array of x-values |
||
real(kind=dp), | intent(in) | :: | y_values(:) | array of y-values, assuming relation |
||
logical, | optional | :: | allow_outside | flag to allow for lookups outside of the array |
interpolated y-value based on