Commit 350cd25b authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

select: search key timestep doesn't work with nfiles>1 (bug fix)

parent 4d1feebf
......@@ -3,12 +3,13 @@
* using CDI library version 1.7.1
* Version 1.7.1 released
2016-02-25 Uwe Schulzweida
2016-02-26 Uwe Schulzweida
* cat: skip time constant fields for nfile>1 (bug fix) [report: Ralf Mller]
* copy: skip time constant fields for nfile>1 (bug fix)
* mergetime: skip time constant fields for nfile>1 (bug fix)
* select: skip time constant fields for nfile>1 (bug fix)
* select: search key timestep doesn't work with nfiles>1 (bug fix)
2016-02-22 Uwe Schulzweida
......
......@@ -652,6 +652,7 @@ void *Select(void *argument)
if ( !cdoVerbose && nfiles > 1 ) progressInit();
timestep = 0;
int tsID2 = 0;
for ( int indf = 0; indf < nfiles; indf++ )
{
......@@ -957,12 +958,12 @@ void *Select(void *argument)
int tsID1 = 0;
while ( (nrecs = streamInqTimestep(streamID1, tsID1)) )
{
timestep++;
bool copytimestep = true;
if ( ltimsel == true )
{
copytimestep = false;
timestep = tsID1 + 1;
if ( operatorID == SELECT && npar_timestep > 0 && timestep > par_timestep[npar_timestep-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