mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
#3549 Temporary LGR : Do not append temporary result values if no data is read from file
This commit is contained in:
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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user