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