updated grounding line interpolation as in https://github.com/pism/pism/commit/6e80072bc8ca40020c20db5bd651bcc843968401 by Johannes Feldmann