Skip to content
Snippets Groups Projects
Commit 6bfa3c46 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cleanup

parent 555e96c8
No related branches found
No related tags found
1 merge request!219M214003/develop
Pipeline #65242 passed
......@@ -95,7 +95,7 @@ public:
run() override
{
Field field1, field2;
std::vector<bool> vars1(MaxMonths, false);
std::vector<bool> varsData1(MaxMonths, false);
CdiDateTime vDateTimes1[MaxMonths]{};
CdiDateTime vDateTimes2[MaxMonths]{};
HistogramSet hsets[MaxMonths];
......@@ -132,9 +132,9 @@ public:
vDateTimes2[month] = vDateTime2;
if (!vars1[month])
if (!varsData1[month])
{
vars1[month] = true;
varsData1[month] = true;
hsets[month].create(numVars, numSteps);
for (const auto &var : varList1.vars) hsets[month].createVarLevels(var.ID, var.nlevels, var.gridsize);
}
......@@ -171,7 +171,8 @@ public:
vDateTimes1[month] = vDateTime;
if (!vars1[month]) cdo_abort("No data for month %d in %s and %s", month, cdo_get_stream_name(1), cdo_get_stream_name(2));
if (!varsData1[month])
cdo_abort("No data for month %d in %s and %s", month, cdo_get_stream_name(1), cdo_get_stream_name(2));
for (int recID = 0; recID < nrecs; ++recID)
{
......
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