From 7febeba43305044c365fc8c3cece6bfc377e5683 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Thu, 25 Oct 2018 22:23:58 +0200 Subject: [PATCH] #3563 Temporary LGR : Use infinity() instead of max() --- ApplicationCode/ReservoirDataModel/RigCaseCellResultsData.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }