Commit 61c5501b authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cgribexGetTsteptype: changed default to TSTEP_INSTANT

parent 2d869857
......@@ -3,6 +3,10 @@
* Version 1.6.0 released
* using CGRIBEX library version 1.6.0
2013-02-13 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* cgribexGetTsteptype: changed default to TSTEP_INSTANT [Bug #3211]
2013-02-04 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* netCDF: ignore the attribute valid_range, if the data type is inconsitent
......
......@@ -125,7 +125,7 @@ int cgribexTimeIsFC(int *isec1)
static
int cgribexGetTsteptype(int timerange)
{
int tsteptype = 0;
int tsteptype = TSTEP_INSTANT;
static int lprint = TRUE;
switch ( timerange )
......@@ -826,7 +826,7 @@ int cgribexScanTimestep2(stream_t * streamptr)
cdi_create_records(streamptr, tsID);
nrecords = streamptr->tsteps[tsID].nallrecs;
streamptr->tsteps[1].recIDs = (int *) malloc(nrecords*sizeof(int));
if ( nrecords ) streamptr->tsteps[1].recIDs = (int *) malloc(nrecords*sizeof(int));
streamptr->tsteps[1].nrecs = 0;
for ( recID = 0; recID < nrecords; recID++ )
streamptr->tsteps[1].recIDs[recID] = -1;
......
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