Fixed duplicate use of variable i

p4#: 22361
This commit is contained in:
Magne Sjaastad 2013-09-09 11:48:23 +02:00
parent dbeabc3240
commit 303f832fac

View File

@ -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;
}