Added isCoarseningActive

This commit is contained in:
Magne Sjaastad
2014-04-03 10:58:29 +02:00
parent acc1d732d7
commit 874b05b119
2 changed files with 9 additions and 0 deletions

View File

@@ -193,6 +193,14 @@ void RigActiveCellInfo::clear()
m_activeCellsBoundingBox.reset(); m_activeCellsBoundingBox.reset();
} }
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RigActiveCellInfo::isCoarseningActive() const
{
return m_globalCellResultCount != m_globalActiveCellCount;
}
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
/// ///
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------

View File

@@ -36,6 +36,7 @@ public:
size_t globalCellCount() const; size_t globalCellCount() const;
size_t globalActiveCellCount() const; size_t globalActiveCellCount() const;
size_t globalCellResultCount() const; size_t globalCellResultCount() const;
bool isCoarseningActive() const;
bool isActive(size_t globalCellIndex) const; bool isActive(size_t globalCellIndex) const;
size_t cellResultIndex(size_t globalCellIndex) const; size_t cellResultIndex(size_t globalCellIndex) const;