Commit faf9f0e3 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

gridCompare: don't check nvertex and number of unstructured grids with same...

gridCompare: don't check nvertex and number of unstructured grids with same uuid and missing coordinates
parent a85527db
......@@ -2185,8 +2185,10 @@ int gridCompare(int gridID, const grid_t *grid)
if ( !differ && memcmp(uuidOfHGrid, grid->uuid, CDI_UUID_SIZE) != 0 ) differ = 1;
if ( !differ && uuidOfHGrid[0] &&
/*
((grid->nvertex == 0 && gridInqNvertex(gridID) != 0) || (grid->nvertex != 0 && gridInqNvertex(gridID) == 0)) &&
((grid->number == 0 && gridInqNumber(gridID) != 0) || (grid->number != 0 && gridInqNumber(gridID) == 0)) &&
*/
((grid->xvals == NULL && gridInqXvalsPtr(gridID) != NULL) || (grid->xvals != NULL && gridInqXvalsPtr(gridID) == NULL)) &&
((grid->yvals == NULL && gridInqYvalsPtr(gridID) != NULL) || (grid->yvals != NULL && gridInqYvalsPtr(gridID) == NULL)) )
{
......
Supports Markdown
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