Commit 1f821564 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

compare_grid_unstructured: added verbose output.

parent 7cc0018a
......@@ -140,9 +140,10 @@ compare_grid_unstructured(int gridID1, int gridID2)
for (size_t i = 0; i < gridsize; i += inc)
if (std::fabs(xvals1[i] - xvals2[i]) > 2.e-5 || std::fabs(yvals1[i] - yvals2[i]) > 2.e-5)
{
// printf("%d %g %g %g %g %g %g\n", i, xvals1[i], xvals2[i],
// yvals1[i], yvals2[i], xvals1[i] - xvals2[i], yvals1[i] - yvals2[i]);
cdoWarning("Geographic location of some grid points differ!");
if (Options::cdoVerbose)
printf("cell=%zu x1=%g x2=%g y1=%g y2=%g dx=%g dy=%g\n", i + 1, xvals1[i], xvals2[i],
yvals1[i], yvals2[i], xvals1[i] - xvals2[i], yvals1[i] - yvals2[i]);
break;
}
}
......
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