Commit 38fe859a authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Annotate usage of stream record member fields.

* Eliminate unused fields.
parent 78a3f4bf
......@@ -108,30 +108,23 @@ char *strdup(const char *s);
typedef struct
{
void *buffer;
size_t buffersize;
off_t position;
int recsize;
int size;
int dataread;
int param;
int level;
int date;
int time;
int gridID;
int zaxisID;
int used;
int nrec;
int varID;
int levelID;
int recid;
int prec;
int sec0[2];
int sec1[1024];
int sec2[4096];
int sec3[2];
int sec4[512];
void *exsep;
void *buffer; /* gribapi, cgribex */
size_t buffersize; /* gribapi, cgribex */
off_t position; /* ieg */
int param; /* srv */
int level; /* ext, srv */
int date; /* ext, srv */
int time; /* srv */
int gridID; /* ieg, ext */
int varID; /* ieg */
int levelID; /* ieg */
int prec; /* ext, srv */
int sec0[2]; /* cgribex */
int sec1[1024]; /* cgribex */
int sec2[4096]; /* cgribex */
int sec3[2]; /* cgribex */
int sec4[512]; /* cgribex */
void *exsep; /* ieg, ext, srv */
}
Record;
......
......@@ -98,21 +98,16 @@ void cdiInitRecord(stream_t *streamptr)
{
streamptr->record = (Record *) malloc(sizeof(Record));
streamptr->record->used = 0;
streamptr->record->nrec = 0;
streamptr->record->dataread = 1;
streamptr->record->param = 0;
streamptr->record->level = 0;
streamptr->record->date = 0;
streamptr->record->time = 0;
streamptr->record->gridID = 0;
streamptr->record->zaxisID = 0;
streamptr->record->buffer = NULL;
streamptr->record->buffersize = 0;
streamptr->record->position = 0;
streamptr->record->varID = 0;
streamptr->record->levelID = CDI_UNDEFID;
streamptr->record->recid = 0;
}
......@@ -193,7 +188,6 @@ void streamDefRecord(int streamID, int varID, int levelID)
streamptr->record->date = streamptr->tsteps[tsID].taxis.vdate;
streamptr->record->time = streamptr->tsteps[tsID].taxis.vtime;
streamptr->record->gridID = gridID;
streamptr->record->zaxisID = zaxisID;
streamptr->record->prec = vlistInqVarDatatype(vlistID, varID);
switch (streamptr->filetype)
......
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