Skip to content
Snippets Groups Projects
Commit c4622614 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Clarify loop structure.

parent 8fd8f71c
No related branches found
No related tags found
2 merge requests!91Add alternative code path for huge buffers.,!89Miscellaneous fixes and CDI-PIO improvements
......@@ -792,12 +792,11 @@ zaxis_compare(int zaxisID, int zaxistype, int nlevels, const double *levels, con
const double *dlevels = zaxisInqLevelsPtr(zaxisID);
if (dlevels && levels)
{
int levelID;
for (levelID = 0; levelID < nlevels; levelID++)
{
if (fabs(dlevels[levelID] - levels[levelID]) > 1.e-9) break;
for (int levelID = 0; levelID < nlevels; levelID++)
if (fabs(dlevels[levelID] - levels[levelID]) > 1.e-9) {
differ = true;
break;
}
if (levelID == nlevels) differ = false;
}
if (!differ && hasBounds)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment