mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
std::clamp() invokes undefined behavior when the low bound is greater than the high bound. In resetMinimumCellValuesToDefault(), the minimum/maximum bounds for saturation, pressure, permeability and transmissibility are derived from case data and can end up inverted when no data is available, which crashed or produced garbage values.