From e22c2e57b93ec45ae6c802f263a3ea1a84a7cfe8 Mon Sep 17 00:00:00 2001 From: Jon Jenssen Date: Wed, 13 Sep 2023 13:44:52 +0200 Subject: [PATCH] Change order of nodes for exported elements --- .../ReservoirDataModel/RigGriddedPart3d.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ApplicationLibCode/ReservoirDataModel/RigGriddedPart3d.cpp b/ApplicationLibCode/ReservoirDataModel/RigGriddedPart3d.cpp index 55e574adb3..c748a11d1e 100644 --- a/ApplicationLibCode/ReservoirDataModel/RigGriddedPart3d.cpp +++ b/ApplicationLibCode/ReservoirDataModel/RigGriddedPart3d.cpp @@ -198,16 +198,16 @@ void RigGriddedPart3d::generateGeometry( std::vector inputPoints, { for ( int t = 0; t < nThicknessCells; t++, elementIdx++ ) { - m_elementIndices[elementIdx].push_back( t + i ); - m_elementIndices[elementIdx].push_back( t + i + nThicknessOff ); - m_elementIndices[elementIdx].push_back( t + i + nThicknessOff + 1 ); - m_elementIndices[elementIdx].push_back( t + i + 1 ); - m_elementIndices[elementIdx].push_back( t + nextLayerIdxOff + i ); m_elementIndices[elementIdx].push_back( t + nextLayerIdxOff + i + nThicknessOff ); m_elementIndices[elementIdx].push_back( t + nextLayerIdxOff + i + nThicknessOff + 1 ); m_elementIndices[elementIdx].push_back( t + nextLayerIdxOff + i + 1 ); + m_elementIndices[elementIdx].push_back( t + i ); + m_elementIndices[elementIdx].push_back( t + i + nThicknessOff ); + m_elementIndices[elementIdx].push_back( t + i + nThicknessOff + 1 ); + m_elementIndices[elementIdx].push_back( t + i + 1 ); + if ( layer == 0 ) { m_boundaryElements[Boundary::Bottom].push_back( elementIdx );