From e5cab39a7fce5905f25dea009cdc4cbab089dfcf Mon Sep 17 00:00:00 2001 From: Rebecca Cox Date: Thu, 19 Oct 2017 12:54:44 +0200 Subject: [PATCH] #1702 Faults: Remove artificial faults caused by gaps in grid --- ApplicationCode/ReservoirDataModel/RigMainGrid.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ApplicationCode/ReservoirDataModel/RigMainGrid.cpp b/ApplicationCode/ReservoirDataModel/RigMainGrid.cpp index a0a4d36156..7d199ff674 100644 --- a/ApplicationCode/ReservoirDataModel/RigMainGrid.cpp +++ b/ApplicationCode/ReservoirDataModel/RigMainGrid.cpp @@ -280,7 +280,10 @@ void RigMainGrid::calculateFaults(const RigActiveCellInfo* activeCellInfo) bool firstNO_FAULTFaceForCell = true; bool isCellActive = true; - for (char faceIdx = 0; faceIdx < 6; ++faceIdx) + char upperLimitForFaceType = cvf::StructGridInterface::FaceType::POS_K; + + // Compare only I and J faces + for (char faceIdx = 0; faceIdx < upperLimitForFaceType; ++faceIdx) { cvf::StructGridInterface::FaceType face = cvf::StructGridInterface::FaceType(faceIdx);