Commit 67d63f2d authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Timstat.c: bug fix for option -S without missing values.

parent be7e9b1a
...@@ -456,11 +456,16 @@ void *Timstat(void *argument) ...@@ -456,11 +456,16 @@ void *Timstat(void *argument)
if ( cdoDiag ) if ( cdoDiag )
{ {
if ( samp1[varID][levelID].ptr ) double *sampptr = field.ptr;
{ if ( samp1[varID][levelID].ptr ) sampptr = samp1[varID][levelID].ptr;
streamDefRecord(streamID3, varID, levelID); else
streamWriteRecord(streamID3, samp1[varID][levelID].ptr, 0); {
} gridsize = gridInqSize(pvar1->grid);
for ( int i = 0; i < gridsize; ++i ) sampptr[i] = nsets;
}
streamDefRecord(streamID3, varID, levelID);
streamWriteRecord(streamID3, sampptr, 0);
} }
} }
......
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