mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3474 LGR Export. Create temporary LGR. Take 1
This commit is contained in:
@@ -1111,6 +1111,14 @@ size_t RigCaseCellResultsData::findOrLoadScalarResult(RiaDefines::ResultCatType
|
||||
|
||||
bool resultLoadingSucess = true;
|
||||
|
||||
int tempGridCellCount = 0;
|
||||
for (int i = 1; i < m_ownerMainGrid->gridCount(); i++)
|
||||
{
|
||||
auto grid = m_ownerMainGrid->gridByIndex(i);
|
||||
if (grid->isTempGrid()) tempGridCellCount += grid->cellCount();
|
||||
}
|
||||
|
||||
|
||||
if (type == RiaDefines::DYNAMIC_NATIVE && timeStepCount > 0)
|
||||
{
|
||||
this->cellScalarResults(scalarResultIndex).resize(timeStepCount);
|
||||
@@ -1123,6 +1131,10 @@ size_t RigCaseCellResultsData::findOrLoadScalarResult(RiaDefines::ResultCatType
|
||||
{
|
||||
resultLoadingSucess = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
values.resize(values.size() + tempGridCellCount);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (type == RiaDefines::STATIC_NATIVE)
|
||||
@@ -1134,6 +1146,10 @@ size_t RigCaseCellResultsData::findOrLoadScalarResult(RiaDefines::ResultCatType
|
||||
{
|
||||
resultLoadingSucess = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
values.resize(values.size() + tempGridCellCount);
|
||||
}
|
||||
}
|
||||
|
||||
if (!resultLoadingSucess)
|
||||
|
||||
Reference in New Issue
Block a user