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

removed check of result from streamOpenWrite

parent 6e70972f
......@@ -102,7 +102,6 @@ void *Math(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);
......
......@@ -93,7 +93,6 @@ void *Merge(void *argument)
}
streamID2 = streamOpenWrite(ofilename, cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", ofilename);
vlistDefTaxis(vlistID2, taxisID2);
streamDefVlist(streamID2, vlistID2);
......
......@@ -229,7 +229,6 @@ void *Mergegrid(void *argument)
vlistID3 = vlistDuplicate(vlistID1);
streamID3 = streamOpenWrite(cdoStreamName(2), cdoFiletype());
if ( streamID3 < 0 ) cdiError(streamID3, "Open failed on %s", cdoStreamName(2));
vlistDefTaxis(vlistID3, taxisID3);
streamDefVlist(streamID3, vlistID3);
......
......@@ -105,8 +105,6 @@ void *Mergetime(void *argument)
cdoAbort("Outputfile %s already exist!", ofilename);
streamID2 = streamOpenWrite(ofilename, cdoFiletype());
if ( streamID2 < 0 )
cdiError(streamID2, "Open failed on %s", ofilename);
if ( ! lcopy )
{
......
......@@ -34,7 +34,6 @@
#include "cdo_int.h"
#include "grid.h"
#include "pstream.h"
#include "functs.h"
void *Merstat(void *argument)
......@@ -124,7 +123,6 @@ void *Merstat(void *argument)
vlistChangeGridIndex(vlistID2, index, gridID2);
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
streamDefVlist(streamID2, vlistID2);
......
......@@ -78,7 +78,6 @@ void *Monarith(void *argument)
vlistDefTaxis(vlistID3, taxisID3);
streamID3 = streamOpenWrite(cdoStreamName(2), cdoFiletype());
if ( streamID3 < 0 ) cdiError(streamID3, "Open failed on %s", cdoStreamName(2));
streamDefVlist(streamID3, vlistID3);
......
......@@ -323,10 +323,7 @@ void *Mrotuv(void *argument)
vlistDefTaxis(vlistID3, taxisID3);
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
streamID3 = streamOpenWrite(cdoStreamName(2), cdoFiletype());
if ( streamID3 < 0 ) cdiError(streamID3, "Open failed on %s", cdoStreamName(2));
streamDefVlist(streamID2, vlistID2);
streamDefVlist(streamID3, vlistID3);
......
......@@ -387,7 +387,6 @@ void *Mrotuvb(void *argument)
if ( cdoVerbose ) vlistPrint(vlistID3);
streamID3 = streamOpenWrite(cdoStreamName(2), cdoFiletype());
if ( streamID3 < 0 ) cdiError(streamID3, "Open failed on %s", cdoStreamName(2));
streamDefVlist(streamID3, vlistID3);
......
......@@ -21,8 +21,6 @@
*/
#include <stdio.h>
#include "cdo.h"
#include "cdo_int.h"
#include "namelist.h"
......
......@@ -69,7 +69,6 @@ void *Pinfo(void *argument)
vlistDefTaxis(vlistID2, taxisID2);
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
streamDefVlist(streamID2, vlistID2);
......
......@@ -355,7 +355,6 @@ void *Pressure(void *argument)
vlistDefTaxis(vlistID2, taxisID2);
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
streamDefVlist(streamID2, vlistID2);
......
......@@ -62,12 +62,10 @@ void *Regres(void *argument)
vlistDefTaxis(vlistID2, taxisID2);
/*
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
streamDefVlist(streamID2, vlistID2);
*/
streamID3 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID3 < 0 ) cdiError(streamID3, "Open failed on %s", cdoStreamName(1));
streamDefVlist(streamID3, vlistID2);
......
......@@ -608,7 +608,6 @@ void *Remap(void *argument)
if ( ! lwrite_remap )
{
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
streamDefVlist(streamID2, vlistID2);
}
......
......@@ -26,7 +26,6 @@
#include "cdo.h"
#include "cdo_int.h"
#include "pstream.h"
#include "functs.h"
#include "vinterp.h"
#include "list.h"
#include "hetaeta.h"
......@@ -443,7 +442,6 @@ void *Remapeta(void *argument)
}
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
streamDefVlist(streamID2, vlistID2);
......
......@@ -140,7 +140,6 @@ void *Replace(void *argument)
vlistID3 = vlistDuplicate(vlistID1);
streamID3 = streamOpenWrite(cdoStreamName(2), cdoFiletype());
if ( streamID3 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(2));
vlistDefTaxis(vlistID3, taxisID3);
streamDefVlist(streamID3, vlistID3);
......
......@@ -101,7 +101,6 @@ void *Replacevalues(void *argument)
vlistDefTaxis(vlistID2, taxisID2);
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
streamDefVlist(streamID2, vlistID2);
......
......@@ -185,7 +185,6 @@ void *Rotuv(void *argument)
vlistDefTaxis(vlistID2, taxisID2);
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
streamDefVlist(streamID2, vlistID2);
......
......@@ -21,15 +21,10 @@
Runpctl runpctl Running percentiles
*/
#include <stdio.h>
#include <math.h>
#include <cdi.h>
#include "cdo.h"
#include "cdo_int.h"
#include "pstream.h"
#include "functs.h"
#include "field.h"
#include "nth_element.h"
......@@ -82,7 +77,6 @@ void *Runpctl(void *argument)
dpy = calendar_dpy(calendar);
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
streamDefVlist(streamID2, vlistID2);
......
......@@ -31,7 +31,6 @@
#include "cdo.h"
#include "cdo_int.h"
#include "pstream.h"
#include "field.h"
void datetime_avg(int calendar, int ndates, datetime_t *datetime)
......@@ -154,7 +153,6 @@ void *Runstat(void *argument)
calendar = taxisInqCalendar(taxisID1);
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
if ( streamID2 < 0 ) cdiError(streamID2, "Open failed on %s", cdoStreamName(1));
streamDefVlist(streamID2, vlistID2);
......
......@@ -209,7 +209,6 @@ void *Scatter(void *argument)
if ( filesuffix[0] )
sprintf(filename+nchars+5, "%s", filesuffix);
streamIDs[index] = streamOpenWrite(filename, cdoFiletype());
if ( streamIDs[index] < 0 ) cdiError(streamIDs[index], "Open failed on %s", filename);
streamDefVlist(streamIDs[index], vlistIDs[index]);
}
......
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