mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 08:52:14 -05:00
Compute global count based on active cell vectors
p4#: 20688
This commit is contained in:
1 parent
1181d62b75
commit
27a8088421
1 file changed
+3
-4
@@ -127,12 +127,11 @@ void RigActiveCellInfo::computeDerivedData()
|
||||
m_globalMatrixModelActiveCellCount = 0;
|
||||
m_globalFractureModelActiveCellCount = 0;
|
||||
|
||||
for (size_t i = 0; i < m_perGridActiveCellInfo.size(); i++)
|
||||
for (size_t i = 0; i < m_activeInFractureModel.size(); i++)
|
||||
{
|
||||
m_globalMatrixModelActiveCellCount += m_perGridActiveCellInfo[i].matrixModelActiveCellCount();
|
||||
m_globalFractureModelActiveCellCount += m_perGridActiveCellInfo[i].fractureModelActiveCellCount();
|
||||
if (activeIndexInMatrixModel(i)) m_globalMatrixModelActiveCellCount++;
|
||||
if (activeIndexInFractureModel(i)) m_globalFractureModelActiveCellCount++;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user