Commit 5f5b0228 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

removed check of result from streamOpenWrite

parent 6e70972f
......@@ -4,7 +4,7 @@
Name: cdo
#BuildRequires:
Version: 1.4.8rc2
Version: 1.4.8rc3
Release: 1
Summary: Climate Data Operators
License: GNU GENERAL PUBLIC LICENSE Version 2, June 1991
......
......@@ -181,7 +181,6 @@ void *Arith(void *argument)
vlistDefTaxis(vlistID3, taxisID3);
streamID3 = streamOpenWrite(cdoStreamName(2), cdoFiletype());
if ( streamID3 < 0 ) cdiError(streamID3, "Open failed on %s", cdoStreamName(2));
streamDefVlist(streamID3, vlistID3);
......
......@@ -68,7 +68,6 @@ void *Arithc(void *argument)
vlistDefTaxis(vlistID2, taxisID2);
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
streamDefVlist(streamID2, vlistID2);
......
......@@ -71,7 +71,6 @@ void *Arithdays(void *argument)
calendar = taxisInqCalendar(taxisID1);
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
streamDefVlist(streamID2, vlistID2);
......
......@@ -66,7 +66,6 @@ void *Arithlat(void *argument)
vlistDefTaxis(vlistID2, taxisID2);
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
streamDefVlist(streamID2, vlistID2);
......
......@@ -63,7 +63,6 @@ void *CDItest(void *argument)
taxisID1 = vlistInqTaxis(vlistID1);
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
vlistID2 = vlistDuplicate(vlistID1);
taxisID2 = taxisDuplicate(taxisID1);
......
......@@ -64,8 +64,6 @@ void *Cat(void *argument)
if ( fileExist(cdoStreamName(nfiles)) )
{
streamID2 = streamOpenAppend(cdoStreamName(nfiles));
if ( streamID2 < 0 )
cdiError(streamID2, "Open failed on %s", cdoStreamName(nfiles));
vlistID2 = streamInqVlist(streamID2);
taxisID2 = vlistInqTaxis(vlistID2);
......@@ -81,8 +79,6 @@ void *Cat(void *argument)
cdoPrint("Output file doesn't exist, creating: %s", cdoStreamName(nfiles));
streamID2 = streamOpenWrite(cdoStreamName(nfiles), cdoFiletype());
if ( streamID2 < 0 )
cdiError(streamID2, "Open failed on %s", cdoStreamName(nfiles));
vlistID2 = vlistDuplicate(vlistID1);
taxisID2 = taxisDuplicate(taxisID1);
......
......@@ -285,7 +285,6 @@ void *Change(void *argument)
}
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
streamDefVlist(streamID2, vlistID2);
......
......@@ -71,7 +71,6 @@ void *Change_e5slm(void *argument)
taxisID1 = vlistInqTaxis(vlistID1);
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
vlistID2 = vlistDuplicate(vlistID1);
taxisID2 = taxisDuplicate(taxisID1);
......
......@@ -337,7 +337,6 @@ void *Cloudlayer(void *argument)
vlistDefTaxis(vlistID2, taxisID2);
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
streamDefVlist(streamID2, vlistID2);
......
......@@ -164,7 +164,6 @@ void *Comp(void *argument)
vlistDefTaxis(vlistID3, taxisID3);
streamID3 = streamOpenWrite(cdoStreamName(2), cdoFiletype());
if ( streamID3 < 0 ) cdiError(streamID3, "Open failed on %s", cdoStreamName(2));
streamDefVlist(streamID3, vlistID3);
......
......@@ -82,7 +82,6 @@ void *Compc(void *argument)
array2 = (double *) malloc(gridsize*sizeof(double));
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
streamDefVlist(streamID2, vlistID2);
......
......@@ -68,14 +68,9 @@ void *Complextorect(void *argument)
vlistDefTaxis(vlistID3, taxisID3);
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
streamDefVlist(streamID2, vlistID2);
streamID3 = streamOpenWrite(cdoStreamName(2), cdoFiletype());
if ( streamID3 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(2));
streamDefVlist(streamID2, vlistID2);
streamDefVlist(streamID3, vlistID3);
gridsize = vlistGridsizeMax(vlistID1);
......
......@@ -81,7 +81,6 @@ void *Cond(void *argument)
nospec(vlistID2);
streamID3 = streamOpenWrite(cdoStreamName(2), cdoFiletype());
if ( streamID3 < 0 ) cdiError(streamID3, "Open failed on %s", cdoStreamName(2));
streamDefVlist(streamID3, vlistID3);
......
......@@ -84,7 +84,6 @@ void *Cond2(void *argument)
nospec(vlistID3);
streamID4 = streamOpenWrite(cdoStreamName(3), cdoFiletype());
if ( streamID4 < 0 ) cdiError(streamID4, "Open failed on %s", cdoStreamName(3));
streamDefVlist(streamID4, vlistID4);
......
......@@ -73,7 +73,6 @@ void *Condc(void *argument)
array2 = (double *) malloc(gridsize*sizeof(double));
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
streamDefVlist(streamID2, vlistID2);
......
......@@ -37,7 +37,6 @@
#include <cdi.h>
#include "cdo.h"
#include "cdo_int.h"
#include "field.h"
#include "pstream.h"
enum {CONSECSUM, CONSECTS};
......@@ -202,7 +201,6 @@ void *Consecstat (void *argument)
}
ostreamID = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( ostreamID < 0 ) cdiError(ostreamID, "Open failed on %s", cdoStreamName(1));
streamDefVlist(ostreamID, ovlistID);
......
......@@ -71,7 +71,6 @@ void *Copy(void *argument)
if ( indf == 0 )
{
streamID2 = streamOpenWrite(cdoStreamName(nfiles), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(nfiles));
vlistID2 = vlistDuplicate(vlistID1);
taxisID2 = taxisDuplicate(taxisID1);
......
......@@ -94,7 +94,6 @@ void *Deltime(void *argument)
vlistDefTaxis(vlistID2, taxisID2);
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
streamDefVlist(streamID2, vlistID2);
......
......@@ -104,7 +104,6 @@ void *Detrend(void *argument)
vlistDefTaxis(vlistID2, taxisID2);
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
streamDefVlist(streamID2, vlistID2);
......
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