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 );