Commit 22aef0c8 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Renamed recinfo to recList.

parent 54dd733a
......@@ -216,7 +216,7 @@ Importbinary(void *process)
int *var_zaxisID = (int *) Malloc(nvars * sizeof(int));
int *var_dfrm = (int *) Malloc(nrecs * sizeof(int));
std::vector<RecordInfo> recinfo(nrecs);
std::vector<RecordInfo> recList(nrecs);
int recID = 0;
for (ivar = 0; ivar < nvars; ++ivar)
......@@ -302,8 +302,8 @@ Importbinary(void *process)
for (levelID = 0; levelID < nlevels; ++levelID)
{
if (recID >= nrecs) cdoAbort("Internal problem with number of records!");
recinfo[recID].varID = varID;
recinfo[recID].levelID = levelID;
recList[recID].varID = varID;
recList[recID].levelID = levelID;
var_dfrm[recID] = pvar->dfrm;
recID++;
}
......@@ -533,8 +533,8 @@ Importbinary(void *process)
printf("%3d %4d %3d %6zu %6zu %12.5g %12.5g\n", tsID, recID,
recoffset, nmiss, n_nan, fmin, fmax);
*/
varID = recinfo[recID].varID;
levelID = recinfo[recID].levelID;
varID = recList[recID].varID;
levelID = recList[recID].levelID;
cdoDefRecord(streamID, varID, levelID);
cdoWriteRecord(streamID, array, nmiss);
}
......
......@@ -82,7 +82,7 @@ Intgridtraj(void *process)
const int nvars = vlistNvars(vlistID1);
const int maxrecs = vlistNrecs(vlistID1);
std::vector<RecordInfo> recinfo(maxrecs);
std::vector<RecordInfo> recList(maxrecs);
const size_t gridsizemax = vlistGridsizeMax(vlistID1);
std::vector<double> array(gridsizemax);
......@@ -147,9 +147,9 @@ Intgridtraj(void *process)
{
cdoInqRecord(streamID1, &varID, &levelID);
recinfo[recID].varID = varID;
recinfo[recID].levelID = levelID;
recinfo[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
recList[recID].varID = varID;
recList[recID].levelID = levelID;
recList[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
const size_t gridsize = gridInqSize(vlistInqVarGrid(vlistID1, varID));
const size_t offset = gridsize * levelID;
......@@ -186,8 +186,8 @@ Intgridtraj(void *process)
*/
for (int recID = 0; recID < nrecs; recID++)
{
varID = recinfo[recID].varID;
levelID = recinfo[recID].levelID;
varID = recList[recID].varID;
levelID = recList[recID].levelID;
const double missval = vlistInqVarMissval(vlistID1, varID);
const int gridID1 = vlistInqVarGrid(vlistID1, varID);
const size_t gridsize = gridInqSize(gridID1);
......
......@@ -60,7 +60,7 @@ Intntime(void *process)
const int nvars = vlistNvars(vlistID1);
const int maxrecs = vlistNrecs(vlistID1);
std::vector<RecordInfo> recinfo(maxrecs);
std::vector<RecordInfo> recList(maxrecs);
const size_t gridsizemax = vlistGridsizeMax(vlistID1);
std::vector<double> array(gridsizemax);
......@@ -125,8 +125,8 @@ Intntime(void *process)
{
cdoInqRecord(streamID1, &varID, &levelID);
recinfo[recID].varID = varID;
recinfo[recID].levelID = levelID;
recList[recID].varID = varID;
recList[recID].levelID = levelID;
const size_t offset = varList1[varID].gridsize * levelID;
double *single2 = &vardata[curSecond][varID][offset];
......@@ -158,8 +158,8 @@ Intntime(void *process)
for (int recID = 0; recID < nrecs; recID++)
{
varID = recinfo[recID].varID;
levelID = recinfo[recID].levelID;
varID = recList[recID].varID;
levelID = recList[recID].levelID;
const size_t gridsize = varList1[varID].gridsize;
const size_t offset = gridsize * levelID;
const double *single1 = &vardata[curFirst][varID][offset];
......@@ -179,8 +179,8 @@ Intntime(void *process)
cdoDefTimestep(streamID2, tsIDo++);
for (int recID = 0; recID < nrecs; recID++)
{
varID = recinfo[recID].varID;
levelID = recinfo[recID].levelID;
varID = recList[recID].varID;
levelID = recList[recID].levelID;
const size_t offset = varList2[varID].gridsize * levelID;
double *single2 = &vardata[curSecond][varID][offset];
......
......@@ -167,7 +167,7 @@ Inttime(void *process)
const int nvars = vlistNvars(vlistID1);
const int maxrecs = vlistNrecs(vlistID1);
std::vector<RecordInfo> recinfo(maxrecs);
std::vector<RecordInfo> recList(maxrecs);
const size_t gridsizemax = vlistGridsizeMax(vlistID1);
std::vector<double> array(gridsizemax);
......@@ -243,9 +243,9 @@ Inttime(void *process)
{
cdoInqRecord(streamID1, &varID, &levelID);
recinfo[recID].varID = varID;
recinfo[recID].levelID = levelID;
recinfo[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
recList[recID].varID = varID;
recList[recID].levelID = levelID;
recList[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
const size_t offset = varList1[varID].gridsize * levelID;
double *single2 = &vardata[curSecond][varID][offset];
......@@ -283,8 +283,8 @@ Inttime(void *process)
for (int recID = 0; recID < nrecs; recID++)
{
varID = recinfo[recID].varID;
levelID = recinfo[recID].levelID;
varID = recList[recID].varID;
levelID = recList[recID].levelID;
const size_t gridsize = varList1[varID].gridsize;
const size_t offset = gridsize * levelID;
const double *single1 = &vardata[curFirst][varID][offset];
......
......@@ -69,7 +69,7 @@ Pardup(void *process)
int nvars = vlistNvars(vlistID1);
int maxrecs = vlistNrecs(vlistID1);
std::vector<RecordInfo> recinfo(maxrecs);
std::vector<RecordInfo> recList(maxrecs);
size_t gridsize = vlistGridsizeMax(vlistID1);
std::vector<double> array(gridsize);
......@@ -104,9 +104,9 @@ Pardup(void *process)
{
cdoInqRecord(streamID1, &varID, &levelID);
recinfo[recID].varID = varID;
recinfo[recID].levelID = levelID;
recinfo[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
recList[recID].varID = varID;
recList[recID].levelID = levelID;
recList[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
gridsize = gridInqSize(vlistInqVarGrid(vlistID1, varID));
offset = gridsize * levelID;
......@@ -119,8 +119,8 @@ Pardup(void *process)
for (int i = 0; i < nmul; i++)
for (int recID = 0; recID < nrecs; recID++)
{
varID = recinfo[recID].varID;
levelID = recinfo[recID].levelID;
varID = recList[recID].varID;
levelID = recList[recID].levelID;
varID2 = varID + i * nvars;
gridsize = gridInqSize(vlistInqVarGrid(vlistID1, varID));
......
......@@ -54,7 +54,7 @@ Regres(void *process)
cdoDefVlist(streamID3, vlistID2);
const int maxrecs = vlistNrecs(vlistID1);
std::vector<RecordInfo> recinfo(maxrecs);
std::vector<RecordInfo> recList(maxrecs);
const size_t gridsizemax = vlistGridsizeMax(vlistID1);
......@@ -84,9 +84,9 @@ Regres(void *process)
if (tsID == 1)
{
recinfo[recID].varID = varID;
recinfo[recID].levelID = levelID;
recinfo[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
recList[recID].varID = varID;
recList[recID].levelID = levelID;
recList[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
}
cdoReadRecord(streamID1, field1.ptr, &nmiss);
......@@ -114,8 +114,8 @@ Regres(void *process)
for (int recID = 0; recID < maxrecs; recID++)
{
const int varID = recinfo[recID].varID;
const int levelID = recinfo[recID].levelID;
const int varID = recList[recID].varID;
const int levelID = recList[recID].levelID;
const double missval = vlistInqVarMissval(vlistID1, varID);
const int gridID = vlistInqVarGrid(vlistID1, varID);
......
......@@ -114,7 +114,7 @@ Rotuv(void *process)
const int nvars = vlistNvars(vlistID1);
const int maxrecs = vlistNrecs(vlistID1);
std::vector<RecordInfo> recinfo(maxrecs);
std::vector<RecordInfo> recList(maxrecs);
size_t **varnmiss = (size_t **) Malloc(nvars * sizeof(size_t *));
double **vardata = (double **) Malloc(nvars * sizeof(double *));
......@@ -174,9 +174,9 @@ Rotuv(void *process)
{
cdoInqRecord(streamID1, &varID, &levelID);
recinfo[recID].varID = varID;
recinfo[recID].levelID = levelID;
recinfo[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
recList[recID].varID = varID;
recList[recID].levelID = levelID;
recList[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
const size_t gridsize = gridInqSize(vlistInqVarGrid(vlistID1, varID));
const size_t offset = gridsize * levelID;
......@@ -254,8 +254,8 @@ Rotuv(void *process)
for (int recID = 0; recID < nrecs; recID++)
{
varID = recinfo[recID].varID;
levelID = recinfo[recID].levelID;
varID = recList[recID].varID;
levelID = recList[recID].levelID;
const size_t gridsize = gridInqSize(vlistInqVarGrid(vlistID1, varID));
const size_t offset = gridsize * levelID;
single = vardata[varID] + offset;
......
......@@ -63,7 +63,7 @@ Runpctl(void *process)
const int nvars = vlistNvars(vlistID1);
const int maxrecs = vlistNrecs(vlistID1);
std::vector<RecordInfo> recinfo(maxrecs);
std::vector<RecordInfo> recList(maxrecs);
DateTimeList dtlist;
dtlist.setStat(timestat_date);
......@@ -88,9 +88,9 @@ Runpctl(void *process)
if (tsID == 0)
{
recinfo[recID].varID = varID;
recinfo[recID].levelID = levelID;
recinfo[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
recList[recID].varID = varID;
recList[recID].levelID = levelID;
recList[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
}
cdoReadRecord(streamID1, vars1[tsID][varID][levelID].ptr, &nmiss);
......@@ -140,10 +140,10 @@ Runpctl(void *process)
for (int recID = 0; recID < maxrecs; recID++)
{
if (otsID && recinfo[recID].lconst) continue;
if (otsID && recList[recID].lconst) continue;
const int varID = recinfo[recID].varID;
const int levelID = recinfo[recID].levelID;
const int varID = recList[recID].varID;
const int levelID = recList[recID].levelID;
cdoDefRecord(streamID2, varID, levelID);
cdoWriteRecord(streamID2, vars1[0][varID][levelID].ptr, vars1[0][varID][levelID].nmiss);
......
......@@ -105,7 +105,7 @@ Runstat(void *process)
cdoDefVlist(streamID2, vlistID2);
const int maxrecs = vlistNrecs(vlistID1);
std::vector<RecordInfo> recinfo(maxrecs);
std::vector<RecordInfo> recList(maxrecs);
DateTimeList dtlist;
dtlist.setStat(timestat_date);
......@@ -139,9 +139,9 @@ Runstat(void *process)
if (tsID == 0)
{
recinfo[recID].varID = varID;
recinfo[recID].levelID = levelID;
recinfo[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
recList[recID].varID = varID;
recList[recID].levelID = levelID;
recList[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
}
Field &rvars1 = vars1[tsID][varID][levelID];
......@@ -217,10 +217,10 @@ Runstat(void *process)
{
for (int recID = 0; recID < maxrecs; recID++)
{
if (recinfo[recID].lconst) continue;
if (recList[recID].lconst) continue;
const int varID = recinfo[recID].varID;
const int levelID = recinfo[recID].levelID;
const int varID = recList[recID].varID;
const int levelID = recList[recID].levelID;
Field &rvars1 = vars1[0][varID][levelID];
const int nsets = ndates;
......@@ -261,10 +261,10 @@ Runstat(void *process)
for (int recID = 0; recID < maxrecs; recID++)
{
if (otsID && recinfo[recID].lconst) continue;
if (otsID && recList[recID].lconst) continue;
const int varID = recinfo[recID].varID;
const int levelID = recinfo[recID].levelID;
const int varID = recList[recID].varID;
const int levelID = recList[recID].levelID;
Field &rvars1 = vars1[0][varID][levelID];
cdoDefRecord(streamID2, varID, levelID);
......
......@@ -57,7 +57,7 @@ Seascount(void *process)
cdoDefVlist(streamID2, vlistID2);
const int maxrecs = vlistNrecs(vlistID1);
std::vector<RecordInfo> recinfo(maxrecs);
std::vector<RecordInfo> recList(maxrecs);
size_t gridsize = vlistGridsizeMax(vlistID1);
if (vlistNumber(vlistID1) != CDI_REAL) gridsize *= 2;
......@@ -104,9 +104,9 @@ Seascount(void *process)
if (tsID == 0)
{
recinfo[recID].varID = varID;
recinfo[recID].levelID = levelID;
recinfo[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
recList[recID].varID = varID;
recList[recID].levelID = levelID;
recList[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
}
// number of words per value; real:1 complex:2
const int nwpv = vars1[varID][levelID].nwpv;
......@@ -140,10 +140,10 @@ Seascount(void *process)
for (int recID = 0; recID < maxrecs; recID++)
{
if (otsID && recinfo[recID].lconst) continue;
if (otsID && recList[recID].lconst) continue;
const int varID = recinfo[recID].varID;
const int levelID = recinfo[recID].levelID;
const int varID = recList[recID].varID;
const int levelID = recList[recID].levelID;
cdoDefRecord(streamID2, varID, levelID);
cdoWriteRecord(streamID2, vars1[varID][levelID].ptr, vars1[varID][levelID].nmiss);
}
......
......@@ -81,7 +81,7 @@ Seaspctl(void *process)
const int nvars = vlistNvars(vlistID1);
const int maxrecs = vlistNrecs(vlistID1);
std::vector<RecordInfo> recinfo(maxrecs);
std::vector<RecordInfo> recList(maxrecs);
DateTimeList dtlist;
dtlist.setStat(timestat_date);
......@@ -179,9 +179,9 @@ Seaspctl(void *process)
cdoInqRecord(streamID1, &varID, &levelID);
if (tsID == 0)
{
recinfo[recID].varID = varID;
recinfo[recID].levelID = levelID;
recinfo[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
recList[recID].varID = varID;
recList[recID].levelID = levelID;
recList[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
}
cdoReadRecord(streamID1, vars1[varID][levelID].ptr, &nmiss);
vars1[varID][levelID].nmiss = nmiss;
......@@ -209,10 +209,10 @@ Seaspctl(void *process)
for (int recID = 0; recID < maxrecs; recID++)
{
if (otsID && recinfo[recID].lconst) continue;
if (otsID && recList[recID].lconst) continue;
const int varID = recinfo[recID].varID;
const int levelID = recinfo[recID].levelID;
const int varID = recList[recID].varID;
const int levelID = recList[recID].levelID;
cdoDefRecord(streamID4, varID, levelID);
cdoWriteRecord(streamID4, vars1[varID][levelID].ptr, vars1[varID][levelID].nmiss);
}
......
......@@ -95,7 +95,7 @@ Seasstat(void *process)
cdoDefVlist(streamID2, vlistID2);
const int maxrecs = vlistNrecs(vlistID1);
std::vector<RecordInfo> recinfo(maxrecs);
std::vector<RecordInfo> recList(maxrecs);
DateTimeList dtlist;
dtlist.setStat(timestat_date);
......@@ -153,9 +153,9 @@ Seasstat(void *process)
if (tsID == 0)
{
recinfo[recID].varID = varID;
recinfo[recID].levelID = levelID;
recinfo[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
recList[recID].varID = varID;
recList[recID].levelID = levelID;
recList[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
}
Field &rsamp1 = samp1[varID][levelID];
......@@ -219,10 +219,10 @@ Seasstat(void *process)
if (nsets == 0 && lvarstd)
for (int recID = 0; recID < maxrecs; recID++)
{
if (recinfo[recID].lconst) continue;
if (recList[recID].lconst) continue;
const int varID = recinfo[recID].varID;
const int levelID = recinfo[recID].levelID;
const int varID = recList[recID].varID;
const int levelID = recList[recID].levelID;
farmoq(vars2[varID][levelID], vars1[varID][levelID]);
}
......@@ -237,10 +237,10 @@ Seasstat(void *process)
for (int recID = 0; recID < maxrecs; recID++)
{
if (recinfo[recID].lconst) continue;
if (recList[recID].lconst) continue;
const int varID = recinfo[recID].varID;
const int levelID = recinfo[recID].levelID;
const int varID = recList[recID].varID;
const int levelID = recList[recID].levelID;
Field &rsamp1 = samp1[varID][levelID];
Field &rvars1 = vars1[varID][levelID];
......@@ -300,10 +300,10 @@ Seasstat(void *process)
for (int recID = 0; recID < maxrecs; recID++)
{
if (otsID && recinfo[recID].lconst) continue;
if (otsID && recList[recID].lconst) continue;
const int varID = recinfo[recID].varID;
const int levelID = recinfo[recID].levelID;
const int varID = recList[recID].varID;
const int levelID = recList[recID].levelID;
Field &rvars1 = vars1[varID][levelID];
cdoDefRecord(streamID2, varID, levelID);
......
......@@ -62,7 +62,7 @@ Selyearidx(void *process)
cdoDefVlist(streamID3, vlistID3);
const int maxrecs = vlistNrecs(vlistID1);
std::vector<RecordInfo> recinfo(maxrecs);
std::vector<RecordInfo> recList(maxrecs);
const size_t gridsizemax = vlistGridsizeMax(vlistID1);
......@@ -109,9 +109,9 @@ Selyearidx(void *process)
if (tsID == 0)
{
recinfo[recID].varID = varID;
recinfo[recID].levelID = levelID;
recinfo[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
recList[recID].varID = varID;
recList[recID].levelID = levelID;
recList[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
}
}
......@@ -154,10 +154,10 @@ Selyearidx(void *process)
for (int recID = 0; recID < maxrecs; recID++)
{
if (tsID && recinfo[recID].lconst) continue;
if (tsID && recList[recID].lconst) continue;
varID = recinfo[recID].varID;
levelID = recinfo[recID].levelID;
varID = recList[recID].varID;
levelID = recList[recID].levelID;
cdoDefRecord(streamID3, varID, levelID);
const size_t gridsize = gridInqSize(vlistInqVarGrid(vlistID2, varID));
const double missval = vlistInqVarMissval(vlistID2, varID);
......
......@@ -72,7 +72,7 @@ Timcount(void *process)
cdoDefVlist(streamID2, vlistID2);
int maxrecs = vlistNrecs(vlistID1);
std::vector<RecordInfo> recinfo(maxrecs);
std::vector<RecordInfo> recList(maxrecs);
size_t gridsize = vlistGridsizeMax(vlistID1);
if (vlistNumber(vlistID1) != CDI_REAL) gridsize *= 2;
......@@ -105,9 +105,9 @@ Timcount(void *process)
if (tsID == 0)
{
recinfo[recID].varID = varID;
recinfo[recID].levelID = levelID;
recinfo[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
recList[recID].varID = varID;
recList[recID].levelID = levelID;
recList[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
}
nwpv = vars1[varID][levelID].nwpv;
......@@ -141,10 +141,10 @@ Timcount(void *process)
for (int recID = 0; recID < maxrecs; recID++)
{
if (otsID && recinfo[recID].lconst) continue;
if (otsID && recList[recID].lconst) continue;
int varID = recinfo[recID].varID;
int levelID = recinfo[recID].levelID;
int varID = recList[recID].varID;
int levelID = recList[recID].levelID;
cdoDefRecord(streamID2, varID, levelID);
cdoWriteRecord(streamID2, vars1[varID][levelID].ptr, vars1[varID][levelID].nmiss);
}
......
......@@ -79,7 +79,7 @@ timpctl(int operatorID)
int nvars = vlistNvars(vlistID1);
int maxrecs = vlistNrecs(vlistID1);
std::vector<RecordInfo> recinfo(maxrecs);
std::vector<RecordInfo> recList(maxrecs);
DateTimeList dtlist;
dtlist.setStat(timestat_date);
......@@ -153,9 +153,9 @@ timpctl(int operatorID)
cdoInqRecord(streamID1, &varID, &levelID);
if (tsID == 0)
{
recinfo[recID].varID = varID;
recinfo[recID].levelID = levelID;
recinfo[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
recList[recID].varID = varID;
recList[recID].levelID = levelID;
recList[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
}
cdoReadRecord(streamID1, vars1[varID][levelID].ptr, &nmiss);
vars1[varID][levelID].nmiss = nmiss;
......@@ -183,10 +183,10 @@ timpctl(int operatorID)
for (int recID = 0; recID < maxrecs; recID++)
{
if (otsID && recinfo[recID].lconst) continue;
if (otsID && recList[recID].lconst) continue;
int varID = recinfo[recID].varID;
int levelID = recinfo[recID].levelID;
int varID = recList[recID].varID;
int levelID = recList[recID].levelID;
cdoDefRecord(streamID4, varID, levelID);
cdoWriteRecord(streamID4, vars1[varID][levelID].ptr, vars1[varID][levelID].nmiss);
}
......
......@@ -85,7 +85,7 @@ Timselpctl(void *process)
int nvars = vlistNvars(vlistID1);
int maxrecs = vlistNrecs(vlistID1);
std::vector<RecordInfo> recinfo(maxrecs);
std::vector<RecordInfo> recList(maxrecs);
DateTimeList dtlist;
dtlist.setStat(timestat_date);
......@@ -120,9 +120,9 @@ Timselpctl(void *process)
if (tsID == 0)
{
recinfo[recID].varID = varID;
recinfo[recID].levelID = levelID;
recinfo[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
recList[recID].varID = varID;
recList[recID].levelID = levelID;
recList[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
}
}
}
......@@ -180,9 +180,9 @@ Timselpctl(void *process)
if (tsID == 0)
{
recinfo[recID].varID = varID;
recinfo[recID].levelID = levelID;
recinfo[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
recList[recID].varID = varID;
recList[recID].levelID = levelID;
recList[recID].lconst = vlistInqVarTimetype(vlistID1, varID) == TIME_CONSTANT;
}
cdoReadRecord(streamID1, vars1[varID][levelID].ptr, &nmiss);
......@@ -210,10 +210,10 @@ Timselpctl(void *process)
for (int recID = 0; recID < maxrecs; recID++)
{
if (otsID && recinfo[recID].lconst) continue;
if (otsID && recList[recID].lconst) continue;