diff --git a/ApplicationCode/ReservoirDataModel/RigCaseCellResultsData.cpp b/ApplicationCode/ReservoirDataModel/RigCaseCellResultsData.cpp index 5dd87ca1db..3950ad120f 100644 --- a/ApplicationCode/ReservoirDataModel/RigCaseCellResultsData.cpp +++ b/ApplicationCode/ReservoirDataModel/RigCaseCellResultsData.cpp @@ -1175,7 +1175,7 @@ size_t RigCaseCellResultsData::findOrLoadScalarResult(RiaDefines::ResultCatType { if (!values.empty()) { - values.resize(values.size() + tempGridCellCount, std::numeric_limits::max()); + values.resize(values.size() + tempGridCellCount, std::numeric_limits::infinity()); assignValuesToTemporaryLgrs(resultName, values); } @@ -1195,7 +1195,7 @@ size_t RigCaseCellResultsData::findOrLoadScalarResult(RiaDefines::ResultCatType { if (!values.empty()) { - values.resize(values.size() + tempGridCellCount, std::numeric_limits::max()); + values.resize(values.size() + tempGridCellCount, std::numeric_limits::infinity()); assignValuesToTemporaryLgrs(resultName, values); }