Added RigActiveCellInfo

Started refactoring aiming for extracting all active cell information into RigActiveCellInfo.
p4#: 20445
This commit is contained in:
Magne Sjaastad
2013-02-11 15:12:53 +01:00
parent c77f1879eb
commit 8fd8a31aec
12 changed files with 132 additions and 41 deletions

View File

@@ -303,22 +303,6 @@ bool RigGridBase::isCellValid(size_t i, size_t j, size_t k) const
return !c.isInvalid();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RigGridBase::isCellActive(size_t i, size_t j, size_t k) const
{
size_t idx = cellIndexFromIJK(i, j, k);
const RigCell& c = cell(idx);
if (!c.isActiveInMatrixModel() || c.isInvalid())
{
return false;
}
else
{
return true;
}
}
//--------------------------------------------------------------------------------------------------
/// TODO: Use structgrid::neighborIJKAtCellFace