mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 23:20:29 -05:00
Bounds-check every gridResultValues access in interpolateGridResultValue to prevent segfaults observed in interpolateInterfaceValues' OMP loop when a result vector was empty or sized for a different result position type. OOB now returns the infinity sentinel that matches the existing undefined-value path and the initializeResultValues pre-fill, so downstream invalid-value checks correctly skip these slots. interpolateInterfaceValues additionally short-circuits and logs a warning with the field/component name when the input result vector is empty, instead of failing silently.