#3549 Temporary LGR : Do not append temporary result values if no data is read from file

This commit is contained in:
Magne Sjaastad committed 2018-10-25 11:50:29 +02:00
1 parent c5ccd30a14
commit 29c89eb135
1 file changed
+7
@@ -1171,6 +1171,8 @@ size_t RigCaseCellResultsData::findOrLoadScalarResult(RiaDefines::ResultCatType
resultLoadingSucess = false;
}
else if (tempGridCellCount > 0)
{
if (!values.empty())
{
values.resize(values.size() + tempGridCellCount);
@@ -1178,6 +1180,7 @@ size_t RigCaseCellResultsData::findOrLoadScalarResult(RiaDefines::ResultCatType
}
}
}
}
else if (type == RiaDefines::STATIC_NATIVE)
{
this->cellScalarResults(scalarResultIndex).resize(1);
@@ -1188,11 +1191,15 @@ size_t RigCaseCellResultsData::findOrLoadScalarResult(RiaDefines::ResultCatType
resultLoadingSucess = false;
}
else if (tempGridCellCount > 0)
{
if (!values.empty())
{
values.resize(values.size() + tempGridCellCount);
assignValuesToTemporaryLgrs(values);
}
}
}
if (!resultLoadingSucess)
{