I am using the **polint **subroutine from **Numerical Recipes in Fortran **to perform interpolation on a two-dimensional function (only increasing the number of columns). The interpolation works quite fine as long as I interpolate between the edges. On the 'real' edges the result is rather zig-zag. My variables are defined as real(kind=0.0) which must be sufficient for the numbers that I am working with. All the functions are monotonic and such a behaviour is not expected. My first thought are: 1.) precision is insufficient or 2.) input point lies slightly outside the boundary. What other possiblities could cause such an behaviour?
![]()

