mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Compute global count based on active cell vectors
p4#: 20688
This commit is contained in:
parent
1181d62b75
commit
27a8088421
@ -127,12 +127,11 @@ void RigActiveCellInfo::computeDerivedData()
|
|||||||
m_globalMatrixModelActiveCellCount = 0;
|
m_globalMatrixModelActiveCellCount = 0;
|
||||||
m_globalFractureModelActiveCellCount = 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();
|
if (activeIndexInMatrixModel(i)) m_globalMatrixModelActiveCellCount++;
|
||||||
m_globalFractureModelActiveCellCount += m_perGridActiveCellInfo[i].fractureModelActiveCellCount();
|
if (activeIndexInFractureModel(i)) m_globalFractureModelActiveCellCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user