Commit fa2affaf authored by Uwe Schulzweida's avatar Uwe Schulzweida

Set constant variables to const.

parent bc6565e3
Pipeline #5748 passed with stages
in 15 minutes and 38 seconds
......@@ -49,7 +49,6 @@ Split(void *process)
int varID;
int levelID, levID;
int varID2, levelID2;
int vlistID2;
int itmp[999];
double ftmp[999];
int nsplit = 0;
......@@ -144,7 +143,7 @@ Split(void *process)
}
}
vlistID2 = vlistCreate();
const auto vlistID2 = vlistCreate();
cdoVlistCopyFlag(vlistID2, vlistID1);
vlistIDs[index] = vlistID2;
......@@ -206,7 +205,7 @@ Split(void *process)
}
}
vlistID2 = vlistCreate();
const auto vlistID2 = vlistCreate();
cdoVlistCopyFlag(vlistID2, vlistID1);
vlistIDs[index] = vlistID2;
......@@ -256,7 +255,8 @@ Split(void *process)
}
}
}
vlistID2 = vlistCreate();
const auto vlistID2 = vlistCreate();
cdoVlistCopyFlag(vlistID2, vlistID1);
vlistIDs[index] = vlistID2;
......@@ -283,7 +283,7 @@ Split(void *process)
vlistDefFlag(vlistID1, varID, levID, true);
}
vlistID2 = vlistCreate();
const auto vlistID2 = vlistCreate();
cdoVlistCopyFlag(vlistID2, vlistID1);
vlistIDs[index] = vlistID2;
......@@ -333,7 +333,8 @@ Split(void *process)
}
}
}
vlistID2 = vlistCreate();
const auto vlistID2 = vlistCreate();
cdoVlistCopyFlag(vlistID2, vlistID1);
vlistIDs[index] = vlistID2;
......@@ -369,7 +370,8 @@ Split(void *process)
}
}
}
vlistID2 = vlistCreate();
const auto vlistID2 = vlistCreate();
cdoVlistCopyFlag(vlistID2, vlistID1);
vlistIDs[index] = vlistID2;
......@@ -403,7 +405,8 @@ Split(void *process)
}
}
}
vlistID2 = vlistCreate();
const auto vlistID2 = vlistCreate();
cdoVlistCopyFlag(vlistID2, vlistID1);
vlistIDs[index] = vlistID2;
......@@ -444,10 +447,11 @@ Split(void *process)
cdoInqRecord(streamID1, &varID, &levelID);
const auto index = vlistInqIndex(vlistID1, varID, levelID);
vlistID2 = vlistIDs[index];
const auto vlistID2 = vlistIDs[index];
varID2 = vlistFindVar(vlistID2, varID);
levelID2 = vlistFindLevel(vlistID2, varID, levelID);
// printf("%d %d %d %d %d %d\n", index, vlistID2, varID, levelID, varID2, levelID2);
cdoDefRecord(streamIDs[index], varID2, levelID2);
if (lcopy)
{
......
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