interpolateSplineXY inconsistent range handling
Summary
Mesh motion was failing in parallel. Tracked down to interpolating mesh motion (solidBodyFunction used to transform cellCentres) using interpolateSplineXY.
Steps to reproduce
Call interpolateSplineXY with x=0 and X0 starting with 0 element as well.
What is the current bug behaviour?
Out of range access
What is the expected correct behavior?
Returning 0.
Relevant logs and/or images
Environment information
- OpenFOAM version : v2406
Possible fixes
Workaround: make table start with e.g. -1e-10 so 0 is inside range.
Fix: consistent range handling in interpolateXY