add 0th order interpolation to LocalInterp

Issue #1385 closed
Roland Haas created an issue

The attached patch adds 0th order (copy from nearest grid point) interpolation to LocalInterp. This can be occasionally useful when using the interpolator as a data-mover.

Keyword: LocalInterp

Comments (5)

  1. Erik Schnetter
    • changed status to open
    • removed comment

    Approved.

    Bonus points for correcting the pre-existing typo "Inperpolation", and for converting the if-else cascade to a switch statement.

  2. Roland Haas reporter
    • changed status to resolved
    • removed comment

    Applied as rev 221 of LocalInterp. Incl. the correction of the typo and turning the if-else cascade into a switch (there's some more in the file that could be changed). How many bonus points do I need to collect for a 1up :-) ?

  3. Log in to comment