diff --git a/ApplicationCode/ReservoirDataModel/RigActiveCellInfo.cpp b/ApplicationCode/ReservoirDataModel/RigActiveCellInfo.cpp index bb0da770da..b58b17c5d4 100644 --- a/ApplicationCode/ReservoirDataModel/RigActiveCellInfo.cpp +++ b/ApplicationCode/ReservoirDataModel/RigActiveCellInfo.cpp @@ -193,6 +193,14 @@ void RigActiveCellInfo::clear() m_activeCellsBoundingBox.reset(); } +//-------------------------------------------------------------------------------------------------- +/// +//-------------------------------------------------------------------------------------------------- +bool RigActiveCellInfo::isCoarseningActive() const +{ + return m_globalCellResultCount != m_globalActiveCellCount; +} + //-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- diff --git a/ApplicationCode/ReservoirDataModel/RigActiveCellInfo.h b/ApplicationCode/ReservoirDataModel/RigActiveCellInfo.h index 2719dbffb5..cbe11c9b8c 100644 --- a/ApplicationCode/ReservoirDataModel/RigActiveCellInfo.h +++ b/ApplicationCode/ReservoirDataModel/RigActiveCellInfo.h @@ -36,6 +36,7 @@ public: size_t globalCellCount() const; size_t globalActiveCellCount() const; size_t globalCellResultCount() const; + bool isCoarseningActive() const; bool isActive(size_t globalCellIndex) const; size_t cellResultIndex(size_t globalCellIndex) const;