mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix statistics not being calculated for properties with values for only active cells
This commit is contained in:
parent
6c04daf333
commit
feeb16fe70
@ -58,8 +58,9 @@ private:
|
||||
}
|
||||
|
||||
const RigActiveCellInfo* actCellInfo = m_resultsData->activeCellInfo();
|
||||
size_t cellCount = actCellInfo->reservoirCellCount();
|
||||
|
||||
for (size_t cIdx = 0; cIdx < values.size(); ++cIdx)
|
||||
for (size_t cIdx = 0; cIdx < cellCount; ++cIdx)
|
||||
{
|
||||
// Filter out inactive cells
|
||||
if (!actCellInfo->isActive(cIdx)) continue;
|
||||
|
Loading…
Reference in New Issue
Block a user