mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 06:38:13 -05:00
Realizations whose calculated summary vector value is NaN or Inf at the selected timestep are now excluded from the Pearson correlation computation instead of propagating NaN through the whole result, which corrupted the correlation tornado plot. Also guard the final correlation value against NaN, since the previous check only compared against +Infinity. RigEnsembleParameter::stdDeviation() sums squared parameter values, which can overflow to +Inf for extreme (but finite) magnitudes, turning normalizedStdDeviation() into NaN. Since NaN compares false against the variation epsilon, such parameters were silently treated as having no variation and dropped from parameterCorrelations(), producing an empty tornado plot for that parameter and calculated vector combination. Fall back to a range-based variation estimate when the standard deviation calculation overflows, so the parameter is retained and the Pearson correlation guard above can take over instead.