Commit 76053e6e authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Copy: moved streamOpenWrite().

parent 1f8ae515
......@@ -124,17 +124,16 @@ Copy(void *process)
vlistCompare(vlistID1, vlistID2, CMP_ALL);
}
if (streamID2 == CDI_UNDEFID)
{
streamID2 = cdoStreamOpenWrite(cdoStreamName(nfiles));
pstreamDefVlist(streamID2, vlistID2);
}
int tsID1 = 0;
while ((nrecs = cdoStreamInqTimestep(streamID1, tsID1)))
{
taxisCopyTimestep(taxisID2, taxisID1);
if (streamID2 == CDI_UNDEFID)
{
streamID2 = cdoStreamOpenWrite(cdoStreamName(nfiles));
pstreamDefVlist(streamID2, vlistID2);
}
pstreamDefTimestep(streamID2, tsID2);
for (int recID = 0; recID < nrecs; recID++)
......
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