#3563 Temporary LGR : Use infinity() instead of max()

This commit is contained in:
Magne Sjaastad 2018-10-25 22:23:58 +02:00
parent fbaa49b72c
commit 7febeba433

View File

@ -1175,7 +1175,7 @@ size_t RigCaseCellResultsData::findOrLoadScalarResult(RiaDefines::ResultCatType
{ {
if (!values.empty()) if (!values.empty())
{ {
values.resize(values.size() + tempGridCellCount, std::numeric_limits<double>::max()); values.resize(values.size() + tempGridCellCount, std::numeric_limits<double>::infinity());
assignValuesToTemporaryLgrs(resultName, values); assignValuesToTemporaryLgrs(resultName, values);
} }
@ -1195,7 +1195,7 @@ size_t RigCaseCellResultsData::findOrLoadScalarResult(RiaDefines::ResultCatType
{ {
if (!values.empty()) if (!values.empty())
{ {
values.resize(values.size() + tempGridCellCount, std::numeric_limits<double>::max()); values.resize(values.size() + tempGridCellCount, std::numeric_limits<double>::infinity());
assignValuesToTemporaryLgrs(resultName, values); assignValuesToTemporaryLgrs(resultName, values);
} }