Commit 66b601f6 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

gridCompare: check position in branch coord_compare.

parent 6ceed04f
......@@ -2391,6 +2391,7 @@ bool gridCompare(int gridID, const grid_t *grid, bool coord_compare)
if ( coord_compare )
{
differ = grid->nvertex != gridRef->nvertex
|| (grid->number > 0 && grid->position != gridRef->position);
|| gridRef->vtable->compareXYAO((grid_t *)gridRef, (grid_t *)grid);
}
else
......@@ -2403,9 +2404,7 @@ bool gridCompare(int gridID, const grid_t *grid, bool coord_compare)
&& (nvertexB = gridRef->nvertex)
&& (nvertexA != nvertexB) )
|| (numberA = grid->number, numberB = gridRef->number,
( (numberA)
&& numberB
&& (numberA != numberB) )
( numberA && numberB && (numberA != numberB) )
|| ( (numberA && numberB)
&& (grid->position) != (gridRef->position) ) );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment