From d40f36e5749bd236fb87ecb844225d73a4c42b36 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Thu, 13 Sep 2018 11:50:24 +0200 Subject: [PATCH] Fracture Containment : Simplify logic --- .../ProjectDataModel/Completions/RimFractureContainment.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ApplicationCode/ProjectDataModel/Completions/RimFractureContainment.cpp b/ApplicationCode/ProjectDataModel/Completions/RimFractureContainment.cpp index 9281a737e3..8bc88743ac 100644 --- a/ApplicationCode/ProjectDataModel/Completions/RimFractureContainment.cpp +++ b/ApplicationCode/ProjectDataModel/Completions/RimFractureContainment.cpp @@ -100,11 +100,7 @@ bool RimFractureContainment::isEclipseCellOpenForFlow(const RigMainGrid* ma if (m_truncateAtFaults()) { - if (reservoirCellIndicesOpenForFlow.count(globalCellIndex) > 0) - { - return true; - } - else + if (reservoirCellIndicesOpenForFlow.count(globalCellIndex) == 0) { return false; }