Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjenssen committed Feb 12, 2024
1 parent 059e43c commit 8798a8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ApplicationLibCode/ReservoirDataModel/RigGriddedPart3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -726,13 +726,13 @@ void RigGriddedPart3d::updateElementSet( ElementSets elSet,
{
for ( int row = rowStart; row != rowEnd; row += rowInc )
{
unsigned int elIdx = (unsigned int)( 2 * ( ( row * m_nHorzElements ) + col ) );
const unsigned int elIdx = (unsigned int)( 2 * ( ( row * m_nHorzElements ) + col ) );

bool bStop = false;

for ( unsigned int t = 0; t < 2; t++ )
{
if ( usedElements.contains( elIdx ) )
if ( usedElements.contains( elIdx + t ) )
{
bStop = true;
break;
Expand Down

0 comments on commit 8798a8f

Please sign in to comment.