From 9aa32e4a887e2bc271201d5b5ab8e2fc94bdff2d Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Thu, 3 Apr 2014 10:58:29 +0200 Subject: [PATCH] Added isCoarseningActive --- ApplicationCode/ReservoirDataModel/RigActiveCellInfo.cpp | 8 ++++++++ ApplicationCode/ReservoirDataModel/RigActiveCellInfo.h | 1 + 2 files changed, 9 insertions(+) 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;