mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
Fixed duplicate use of variable i
p4#: 22361
This commit is contained in:
1 parent
dbeabc3240
commit
303f832fac
1 file changed
+2
-3
@@ -397,10 +397,9 @@ void RigGridBase::computeFaults()
|
||||
|
||||
// Check if vertices are matching
|
||||
double tolerance = 1e-6;
|
||||
size_t i;
|
||||
for (i = 0; i < 4; i++)
|
||||
for (size_t cellFaceIdx = 0; cellFaceIdx < 4; cellFaceIdx++)
|
||||
{
|
||||
if (currentCellFaceVertices[i].pointDistance(neighbourCellFaceVertices[i]) > tolerance )
|
||||
if (currentCellFaceVertices[cellFaceIdx].pointDistance(neighbourCellFaceVertices[cellFaceIdx]) > tolerance )
|
||||
{
|
||||
sharedFaceVertices = false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user