Commit 6a80f33b authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Replace vlistInqVarTimave(vlistID, varID) by (tsteptype == TSTEP_AVG).

parent 5933e614
......@@ -174,9 +174,7 @@ void grb_write_var_slice(stream_t *streamptr, int varID, int levelID, int memtyp
int tsID = streamptr->curTsID;
int date = streamptr->tsteps[tsID].taxis.vdate;
int time = streamptr->tsteps[tsID].taxis.vtime;
int numavg = 0;
if ( vlistInqVarTimave(vlistID, varID) )
numavg = streamptr->tsteps[tsID].taxis.numavg;
int numavg = (tsteptype == TSTEP_AVG) ? streamptr->tsteps[tsID].taxis.numavg : 0;
if ( CDI_Debug )
Message("gridID = %d zaxisID = %d", gridID, zaxisID);
......
Supports Markdown
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