Commit 3828aa68 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

struct record_t: changed data type of levelID from short to int.

parent b73395c1
2019-11-27 Uwe Schulzweida
* struct record_t: changed data type of levelID from short to int
2019-11-26 Uwe Schulzweida
* cdi.h: removed function gaussianLatitudes() from cdi interface
......
......@@ -183,7 +183,7 @@ typedef struct
int ltype;
short tsteptype;
short varID;
short levelID;
int levelID;
short used;
char varname[32]; // needed for grib decoding with GRIB_API
VarScanKeys scanKeys;
......
......@@ -496,7 +496,7 @@ void cdfCreateRecords(stream_t *streamptr, int tsID)
{
recordInitEntry(&records[recID]);
records[recID].varID = (short)varID;
records[recID].levelID = (short)levelID;
records[recID].levelID = levelID;
recID++;
}
}
......
......@@ -557,7 +557,7 @@ void cgribexAddRecord(stream_t *streamptr, cgribexrec_t *cgribexp, int param, si
NULL, NULL, NULL, NULL);
record->varID = (short)varID;
record->levelID = (short)levelID;
record->levelID = levelID;
varDefCompType(varID, comptype);
......
......@@ -195,7 +195,7 @@ void extAddRecord(stream_t *streamptr, int param, int level, size_t xysize,
NULL, NULL, NULL, NULL);
record->varID = (short)varID;
record->levelID = (short)levelID;
record->levelID = levelID;
streamptr->tsteps[tsID].nallrecs++;
streamptr->nrecs++;
......
......@@ -739,7 +739,7 @@ void gribapiAddRecord(stream_t *streamptr, int param, grib_handle *gh,
varname, scanKeys, tiles, &tile_index);
record->varID = (short)varID;
record->levelID = (short)levelID;
record->levelID = levelID;
varDefCompType(varID, comptype);
......
......@@ -615,7 +615,7 @@ void iegAddRecord(stream_t *streamptr, int param, int *pdb, int *gdb, double *vc
NULL, NULL, NULL, NULL);
record->varID = (short)varID;
record->levelID = (short)levelID;
record->levelID = levelID;
streamptr->tsteps[tsID].nallrecs++;
streamptr->nrecs++;
......
......@@ -194,7 +194,7 @@ void srv_add_record(stream_t *streamptr, int param, int level, size_t xsize, siz
xassert(varID <= SHRT_MAX && levelID <= SHRT_MAX);
record->varID = (short)varID;
record->levelID = (short)levelID;
record->levelID = levelID;
streamptr->tsteps[tsID].nallrecs++;
streamptr->nrecs++;
......
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