Bugfix: mesh interpolation in 1D
Description
Fix the interpolation when points are outside the interpolation region. This prevents NaNs. Also fixes small problems flagged by Valgrind.
News snippet
Bugfix for 1D mesh interpolation that was possibly leading to NaNs
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.