Compute global count based on active cell vectors

p4#: 20688
This commit is contained in:
Magne Sjaastad 2013-03-01 16:13:37 +01:00
parent 1181d62b75
commit 27a8088421

View File

@ -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++;
} }
} }
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------