Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
5f5b0228
Commit
5f5b0228
authored
Jan 18, 2011
by
Uwe Schulzweida
Browse files
removed check of result from streamOpenWrite
parent
6e70972f
Changes
146
Hide whitespace changes
Inline
Side-by-side
cdo.spec
View file @
5f5b0228
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
Name: cdo
Name: cdo
#BuildRequires:
#BuildRequires:
Version: 1.4.8rc
2
Version: 1.4.8rc
3
Release: 1
Release: 1
Summary: Climate Data Operators
Summary: Climate Data Operators
License: GNU GENERAL PUBLIC LICENSE Version 2, June 1991
License: GNU GENERAL PUBLIC LICENSE Version 2, June 1991
...
...
src/Arith.c
View file @
5f5b0228
...
@@ -181,7 +181,6 @@ void *Arith(void *argument)
...
@@ -181,7 +181,6 @@ void *Arith(void *argument)
vlistDefTaxis
(
vlistID3
,
taxisID3
);
vlistDefTaxis
(
vlistID3
,
taxisID3
);
streamID3
=
streamOpenWrite
(
cdoStreamName
(
2
),
cdoFiletype
());
streamID3
=
streamOpenWrite
(
cdoStreamName
(
2
),
cdoFiletype
());
if
(
streamID3
<
0
)
cdiError
(
streamID3
,
"Open failed on %s"
,
cdoStreamName
(
2
));
streamDefVlist
(
streamID3
,
vlistID3
);
streamDefVlist
(
streamID3
,
vlistID3
);
...
...
src/Arithc.c
View file @
5f5b0228
...
@@ -68,7 +68,6 @@ void *Arithc(void *argument)
...
@@ -68,7 +68,6 @@ void *Arithc(void *argument)
vlistDefTaxis
(
vlistID2
,
taxisID2
);
vlistDefTaxis
(
vlistID2
,
taxisID2
);
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
if
(
streamID2
<
0
)
cdiError
(
streamID2
,
"Open failed on %s"
,
cdoStreamName
(
1
));
streamDefVlist
(
streamID2
,
vlistID2
);
streamDefVlist
(
streamID2
,
vlistID2
);
...
...
src/Arithdays.c
View file @
5f5b0228
...
@@ -71,7 +71,6 @@ void *Arithdays(void *argument)
...
@@ -71,7 +71,6 @@ void *Arithdays(void *argument)
calendar
=
taxisInqCalendar
(
taxisID1
);
calendar
=
taxisInqCalendar
(
taxisID1
);
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
if
(
streamID2
<
0
)
cdiError
(
streamID2
,
"Open failed on %s"
,
cdoStreamName
(
1
));
streamDefVlist
(
streamID2
,
vlistID2
);
streamDefVlist
(
streamID2
,
vlistID2
);
...
...
src/Arithlat.c
View file @
5f5b0228
...
@@ -66,7 +66,6 @@ void *Arithlat(void *argument)
...
@@ -66,7 +66,6 @@ void *Arithlat(void *argument)
vlistDefTaxis
(
vlistID2
,
taxisID2
);
vlistDefTaxis
(
vlistID2
,
taxisID2
);
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
if
(
streamID2
<
0
)
cdiError
(
streamID2
,
"Open failed on %s"
,
cdoStreamName
(
1
));
streamDefVlist
(
streamID2
,
vlistID2
);
streamDefVlist
(
streamID2
,
vlistID2
);
...
...
src/CDItest.c
View file @
5f5b0228
...
@@ -63,7 +63,6 @@ void *CDItest(void *argument)
...
@@ -63,7 +63,6 @@ void *CDItest(void *argument)
taxisID1
=
vlistInqTaxis
(
vlistID1
);
taxisID1
=
vlistInqTaxis
(
vlistID1
);
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
if
(
streamID2
<
0
)
cdiError
(
streamID2
,
"Open failed on %s"
,
cdoStreamName
(
1
));
vlistID2
=
vlistDuplicate
(
vlistID1
);
vlistID2
=
vlistDuplicate
(
vlistID1
);
taxisID2
=
taxisDuplicate
(
taxisID1
);
taxisID2
=
taxisDuplicate
(
taxisID1
);
...
...
src/Cat.c
View file @
5f5b0228
...
@@ -64,8 +64,6 @@ void *Cat(void *argument)
...
@@ -64,8 +64,6 @@ void *Cat(void *argument)
if
(
fileExist
(
cdoStreamName
(
nfiles
))
)
if
(
fileExist
(
cdoStreamName
(
nfiles
))
)
{
{
streamID2
=
streamOpenAppend
(
cdoStreamName
(
nfiles
));
streamID2
=
streamOpenAppend
(
cdoStreamName
(
nfiles
));
if
(
streamID2
<
0
)
cdiError
(
streamID2
,
"Open failed on %s"
,
cdoStreamName
(
nfiles
));
vlistID2
=
streamInqVlist
(
streamID2
);
vlistID2
=
streamInqVlist
(
streamID2
);
taxisID2
=
vlistInqTaxis
(
vlistID2
);
taxisID2
=
vlistInqTaxis
(
vlistID2
);
...
@@ -81,8 +79,6 @@ void *Cat(void *argument)
...
@@ -81,8 +79,6 @@ void *Cat(void *argument)
cdoPrint
(
"Output file doesn't exist, creating: %s"
,
cdoStreamName
(
nfiles
));
cdoPrint
(
"Output file doesn't exist, creating: %s"
,
cdoStreamName
(
nfiles
));
streamID2
=
streamOpenWrite
(
cdoStreamName
(
nfiles
),
cdoFiletype
());
streamID2
=
streamOpenWrite
(
cdoStreamName
(
nfiles
),
cdoFiletype
());
if
(
streamID2
<
0
)
cdiError
(
streamID2
,
"Open failed on %s"
,
cdoStreamName
(
nfiles
));
vlistID2
=
vlistDuplicate
(
vlistID1
);
vlistID2
=
vlistDuplicate
(
vlistID1
);
taxisID2
=
taxisDuplicate
(
taxisID1
);
taxisID2
=
taxisDuplicate
(
taxisID1
);
...
...
src/Change.c
View file @
5f5b0228
...
@@ -285,7 +285,6 @@ void *Change(void *argument)
...
@@ -285,7 +285,6 @@ void *Change(void *argument)
}
}
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
if
(
streamID2
<
0
)
cdiError
(
streamID2
,
"Open failed on %s"
,
cdoStreamName
(
1
));
streamDefVlist
(
streamID2
,
vlistID2
);
streamDefVlist
(
streamID2
,
vlistID2
);
...
...
src/Change_e5slm.c
View file @
5f5b0228
...
@@ -71,7 +71,6 @@ void *Change_e5slm(void *argument)
...
@@ -71,7 +71,6 @@ void *Change_e5slm(void *argument)
taxisID1
=
vlistInqTaxis
(
vlistID1
);
taxisID1
=
vlistInqTaxis
(
vlistID1
);
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
if
(
streamID2
<
0
)
cdiError
(
streamID2
,
"Open failed on %s"
,
cdoStreamName
(
1
));
vlistID2
=
vlistDuplicate
(
vlistID1
);
vlistID2
=
vlistDuplicate
(
vlistID1
);
taxisID2
=
taxisDuplicate
(
taxisID1
);
taxisID2
=
taxisDuplicate
(
taxisID1
);
...
...
src/Cloudlayer.c
View file @
5f5b0228
...
@@ -337,7 +337,6 @@ void *Cloudlayer(void *argument)
...
@@ -337,7 +337,6 @@ void *Cloudlayer(void *argument)
vlistDefTaxis
(
vlistID2
,
taxisID2
);
vlistDefTaxis
(
vlistID2
,
taxisID2
);
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
if
(
streamID2
<
0
)
cdiError
(
streamID2
,
"Open failed on %s"
,
cdoStreamName
(
1
));
streamDefVlist
(
streamID2
,
vlistID2
);
streamDefVlist
(
streamID2
,
vlistID2
);
...
...
src/Comp.c
View file @
5f5b0228
...
@@ -164,7 +164,6 @@ void *Comp(void *argument)
...
@@ -164,7 +164,6 @@ void *Comp(void *argument)
vlistDefTaxis
(
vlistID3
,
taxisID3
);
vlistDefTaxis
(
vlistID3
,
taxisID3
);
streamID3
=
streamOpenWrite
(
cdoStreamName
(
2
),
cdoFiletype
());
streamID3
=
streamOpenWrite
(
cdoStreamName
(
2
),
cdoFiletype
());
if
(
streamID3
<
0
)
cdiError
(
streamID3
,
"Open failed on %s"
,
cdoStreamName
(
2
));
streamDefVlist
(
streamID3
,
vlistID3
);
streamDefVlist
(
streamID3
,
vlistID3
);
...
...
src/Compc.c
View file @
5f5b0228
...
@@ -82,7 +82,6 @@ void *Compc(void *argument)
...
@@ -82,7 +82,6 @@ void *Compc(void *argument)
array2
=
(
double
*
)
malloc
(
gridsize
*
sizeof
(
double
));
array2
=
(
double
*
)
malloc
(
gridsize
*
sizeof
(
double
));
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
if
(
streamID2
<
0
)
cdiError
(
streamID2
,
"Open failed on %s"
,
cdoStreamName
(
1
));
streamDefVlist
(
streamID2
,
vlistID2
);
streamDefVlist
(
streamID2
,
vlistID2
);
...
...
src/Complextorect.c
View file @
5f5b0228
...
@@ -68,14 +68,9 @@ void *Complextorect(void *argument)
...
@@ -68,14 +68,9 @@ void *Complextorect(void *argument)
vlistDefTaxis
(
vlistID3
,
taxisID3
);
vlistDefTaxis
(
vlistID3
,
taxisID3
);
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
if
(
streamID2
<
0
)
cdiError
(
streamID2
,
"Open failed on %s"
,
cdoStreamName
(
1
));
streamDefVlist
(
streamID2
,
vlistID2
);
streamID3
=
streamOpenWrite
(
cdoStreamName
(
2
),
cdoFiletype
());
streamID3
=
streamOpenWrite
(
cdoStreamName
(
2
),
cdoFiletype
());
if
(
streamID3
<
0
)
cdiError
(
streamID2
,
"Open failed on %s"
,
cdoStreamName
(
2
));
streamDefVlist
(
streamID2
,
vlistID2
);
streamDefVlist
(
streamID3
,
vlistID3
);
streamDefVlist
(
streamID3
,
vlistID3
);
gridsize
=
vlistGridsizeMax
(
vlistID1
);
gridsize
=
vlistGridsizeMax
(
vlistID1
);
...
...
src/Cond.c
View file @
5f5b0228
...
@@ -81,7 +81,6 @@ void *Cond(void *argument)
...
@@ -81,7 +81,6 @@ void *Cond(void *argument)
nospec
(
vlistID2
);
nospec
(
vlistID2
);
streamID3
=
streamOpenWrite
(
cdoStreamName
(
2
),
cdoFiletype
());
streamID3
=
streamOpenWrite
(
cdoStreamName
(
2
),
cdoFiletype
());
if
(
streamID3
<
0
)
cdiError
(
streamID3
,
"Open failed on %s"
,
cdoStreamName
(
2
));
streamDefVlist
(
streamID3
,
vlistID3
);
streamDefVlist
(
streamID3
,
vlistID3
);
...
...
src/Cond2.c
View file @
5f5b0228
...
@@ -84,7 +84,6 @@ void *Cond2(void *argument)
...
@@ -84,7 +84,6 @@ void *Cond2(void *argument)
nospec
(
vlistID3
);
nospec
(
vlistID3
);
streamID4
=
streamOpenWrite
(
cdoStreamName
(
3
),
cdoFiletype
());
streamID4
=
streamOpenWrite
(
cdoStreamName
(
3
),
cdoFiletype
());
if
(
streamID4
<
0
)
cdiError
(
streamID4
,
"Open failed on %s"
,
cdoStreamName
(
3
));
streamDefVlist
(
streamID4
,
vlistID4
);
streamDefVlist
(
streamID4
,
vlistID4
);
...
...
src/Condc.c
View file @
5f5b0228
...
@@ -73,7 +73,6 @@ void *Condc(void *argument)
...
@@ -73,7 +73,6 @@ void *Condc(void *argument)
array2
=
(
double
*
)
malloc
(
gridsize
*
sizeof
(
double
));
array2
=
(
double
*
)
malloc
(
gridsize
*
sizeof
(
double
));
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
if
(
streamID2
<
0
)
cdiError
(
streamID2
,
"Open failed on %s"
,
cdoStreamName
(
1
));
streamDefVlist
(
streamID2
,
vlistID2
);
streamDefVlist
(
streamID2
,
vlistID2
);
...
...
src/Consecstat.c
View file @
5f5b0228
...
@@ -37,7 +37,6 @@
...
@@ -37,7 +37,6 @@
#include <cdi.h>
#include <cdi.h>
#include "cdo.h"
#include "cdo.h"
#include "cdo_int.h"
#include "cdo_int.h"
#include "field.h"
#include "pstream.h"
#include "pstream.h"
enum
{
CONSECSUM
,
CONSECTS
};
enum
{
CONSECSUM
,
CONSECTS
};
...
@@ -202,7 +201,6 @@ void *Consecstat (void *argument)
...
@@ -202,7 +201,6 @@ void *Consecstat (void *argument)
}
}
ostreamID
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
ostreamID
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
if
(
ostreamID
<
0
)
cdiError
(
ostreamID
,
"Open failed on %s"
,
cdoStreamName
(
1
));
streamDefVlist
(
ostreamID
,
ovlistID
);
streamDefVlist
(
ostreamID
,
ovlistID
);
...
...
src/Copy.c
View file @
5f5b0228
...
@@ -71,7 +71,6 @@ void *Copy(void *argument)
...
@@ -71,7 +71,6 @@ void *Copy(void *argument)
if
(
indf
==
0
)
if
(
indf
==
0
)
{
{
streamID2
=
streamOpenWrite
(
cdoStreamName
(
nfiles
),
cdoFiletype
());
streamID2
=
streamOpenWrite
(
cdoStreamName
(
nfiles
),
cdoFiletype
());
if
(
streamID2
<
0
)
cdiError
(
streamID2
,
"Open failed on %s"
,
cdoStreamName
(
nfiles
));
vlistID2
=
vlistDuplicate
(
vlistID1
);
vlistID2
=
vlistDuplicate
(
vlistID1
);
taxisID2
=
taxisDuplicate
(
taxisID1
);
taxisID2
=
taxisDuplicate
(
taxisID1
);
...
...
src/Deltime.c
View file @
5f5b0228
...
@@ -94,7 +94,6 @@ void *Deltime(void *argument)
...
@@ -94,7 +94,6 @@ void *Deltime(void *argument)
vlistDefTaxis
(
vlistID2
,
taxisID2
);
vlistDefTaxis
(
vlistID2
,
taxisID2
);
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
if
(
streamID2
<
0
)
cdiError
(
streamID2
,
"Open failed on %s"
,
cdoStreamName
(
1
));
streamDefVlist
(
streamID2
,
vlistID2
);
streamDefVlist
(
streamID2
,
vlistID2
);
...
...
src/Detrend.c
View file @
5f5b0228
...
@@ -104,7 +104,6 @@ void *Detrend(void *argument)
...
@@ -104,7 +104,6 @@ void *Detrend(void *argument)
vlistDefTaxis
(
vlistID2
,
taxisID2
);
vlistDefTaxis
(
vlistID2
,
taxisID2
);
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
streamID2
=
streamOpenWrite
(
cdoStreamName
(
1
),
cdoFiletype
());
if
(
streamID2
<
0
)
cdiError
(
streamID2
,
"Open failed on %s"
,
cdoStreamName
(
1
));
streamDefVlist
(
streamID2
,
vlistID2
);
streamDefVlist
(
streamID2
,
vlistID2
);
...
...
Prev
1
2
3
4
5
…
8
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment