Commit 3a686d3e authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Init streamID1.

parent d093d233
...@@ -46,7 +46,7 @@ void *Ensval(void *argument) ...@@ -46,7 +46,7 @@ void *Ensval(void *argument)
int nrecs = 0, nrecs0, nmiss, nostreams = 0, ngrids; int nrecs = 0, nrecs0, nmiss, nostreams = 0, ngrids;
int levelID, varID; int levelID, varID;
int gridsize = 0; int gridsize = 0;
int streamID1, vlistID; int vlistID;
int gridID = -1; int gridID = -1;
int have_miss = 0; int have_miss = 0;
int stream, streamID = 0; int stream, streamID = 0;
...@@ -134,8 +134,6 @@ void *Ensval(void *argument) ...@@ -134,8 +134,6 @@ void *Ensval(void *argument)
for ( fileID = 0; fileID < nfiles; fileID++ ) for ( fileID = 0; fileID < nfiles; fileID++ )
{ {
streamID = streamOpenRead(cdoStreamName(fileID)); streamID = streamOpenRead(cdoStreamName(fileID));
if ( fileID == 0 ) streamID1 = streamID;
vlistID = streamInqVlist(streamID); vlistID = streamInqVlist(streamID);
ef[fileID].streamID = streamID; ef[fileID].streamID = streamID;
...@@ -143,6 +141,8 @@ void *Ensval(void *argument) ...@@ -143,6 +141,8 @@ void *Ensval(void *argument)
ef[fileID].array = NULL; ef[fileID].array = NULL;
} }
int streamID1 = ef[0].streamID;
if ( cdoVerbose ) if ( cdoVerbose )
cdoPrint("Opened %i Input Files for Ensemble Operator",nfiles); cdoPrint("Opened %i Input Files for Ensemble Operator",nfiles);
......
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