From f8dc3b4b81286d1c851b97b4824fa898dfe4346d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20St=C3=B8ren?= Date: Thu, 10 Sep 2015 12:14:00 +0200 Subject: [PATCH] This fixes a cutpaste error in the Geomech IJK assignment. It might fix (#309) --- ApplicationCode/GeoMech/GeoMechDataModel/RigFemPartGrid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ApplicationCode/GeoMech/GeoMechDataModel/RigFemPartGrid.cpp b/ApplicationCode/GeoMech/GeoMechDataModel/RigFemPartGrid.cpp index 27eddfdb6f..894b05f303 100644 --- a/ApplicationCode/GeoMech/GeoMechDataModel/RigFemPartGrid.cpp +++ b/ApplicationCode/GeoMech/GeoMechDataModel/RigFemPartGrid.cpp @@ -188,8 +188,8 @@ int RigFemPartGrid::findElmIdxForIJK000() cvf::Vec3i ijkMainFaceIndices = findMainIJKFaces(elmIdx); if ( m_femPart->elementNeighbor(elmIdx, ijkMainFaceIndices[0]) != -1 - && m_femPart->elementNeighbor(elmIdx, ijkMainFaceIndices[0]) != -1 - && m_femPart->elementNeighbor(elmIdx, ijkMainFaceIndices[0]) != -1 ) + && m_femPart->elementNeighbor(elmIdx, ijkMainFaceIndices[1]) != -1 + && m_femPart->elementNeighbor(elmIdx, ijkMainFaceIndices[2]) != -1 ) { return elmIdx; }