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
03a395ea
Commit
03a395ea
authored
Jun 09, 2017
by
Uwe Schulzweida
Browse files
Renamed streamXXX() to pstreamXXX().
parent
2861ddb5
Changes
30
Hide whitespace changes
Inline
Side-by-side
src/Afterburner.cc
View file @
03a395ea
...
...
@@ -20,6 +20,9 @@
#include "cdo.h"
#include "cdo_int.h"
#include "pstream_write.h"
#define streamOpenWrite pstreamOpenWrite
#define streamDefVlist pstreamDefVlist
#define streamDefTimestep pstreamDefTimestep
#endif
#if defined(AFTERBURNER)
...
...
@@ -2075,7 +2078,7 @@ void after_processing(struct Control *globs, struct Variable *vars)
{
int
i
;
//#if defined(
_
PSTREAM_H)
//#if defined(PSTREAM_H)
// globs->istreamID = streamOpenRead(cdoStreamName(0));
//#else
globs
->
istreamID
=
streamOpenRead
(
ifile
);
...
...
@@ -2089,7 +2092,7 @@ void after_processing(struct Control *globs, struct Variable *vars)
if
(
globs
->
Mean
!=
2
)
{
#if defined(
_
PSTREAM_WRITE_H)
#if defined(PSTREAM_WRITE_H)
globs
->
ostreamID
=
streamOpenWrite
(
cdoStreamName
(
ofileidx
),
ofiletype
);
#else
globs
->
ostreamID
=
streamOpenWrite
(
ofile
,
ofiletype
);
...
...
@@ -2229,7 +2232,7 @@ void after_processing(struct Control *globs, struct Variable *vars)
after_control
(
globs
,
vars
);
#if defined(
_
PSTREAM_WRITE_H)
#if defined(PSTREAM_WRITE_H)
if
(
globs
->
ostreamID
!=
CDI_UNDEFID
)
pstreamClose
(
globs
->
ostreamID
);
#else
if
(
globs
->
ostreamID2
!=
CDI_UNDEFID
)
streamClose
(
globs
->
ostreamID2
);
...
...
src/CMOR.cc
View file @
03a395ea
...
...
@@ -644,7 +644,7 @@ struct mapping
static
struct
mapping
*
construct_var_mapping
(
int
streamID
)
{
int
nvars_max
=
vlistNvars
(
streamInqVlist
(
streamID
));
int
nvars_max
=
vlistNvars
(
p
streamInqVlist
(
streamID
));
struct
mapping
*
vars
=
(
struct
mapping
*
)
Malloc
((
nvars_max
+
1
)
*
sizeof
(
struct
mapping
));
vars
[
0
].
cdi_varID
=
CDI_UNDEFID
;
...
...
src/CMOR_lite.cc
View file @
03a395ea
...
...
@@ -442,7 +442,7 @@ void *CMOR_lite(void *argument)
}
int
vlistIDx
=
vlistCreate
();
v
listCopyFlag
(
vlistIDx
,
vlistID2
);
cdoV
listCopyFlag
(
vlistIDx
,
vlistID2
);
vlistDestroy
(
vlistID2
);
...
...
src/Collgrid.cc
View file @
03a395ea
...
...
@@ -410,7 +410,7 @@ void *Collgrid(void *argument)
}
int
vlistID2
=
vlistCreate
();
v
listCopyFlag
(
vlistID2
,
vlistID1
);
cdoV
listCopyFlag
(
vlistID2
,
vlistID1
);
/*
if ( cdoVerbose )
{
...
...
src/Comp.cc
View file @
03a395ea
...
...
@@ -161,7 +161,7 @@ void *Comp(void *argument)
vlistDefTaxis
(
vlistID3
,
taxisID3
);
int
streamID3
=
pstreamOpenWrite
(
cdoStreamName
(
2
),
cdoFiletype
());
streamDefVlist
(
streamID3
,
vlistID3
);
p
streamDefVlist
(
streamID3
,
vlistID3
);
int
tsID
=
0
;
while
(
(
nrecs
=
pstreamInqTimestep
(
streamIDx1
,
tsID
))
)
...
...
src/Ensval.cc
View file @
03a395ea
...
...
@@ -246,7 +246,7 @@ void *Ensval(void *argument)
{
for
(
fileID
=
0
;
fileID
<
nfiles
;
fileID
++
)
{
streamInqRecord
(
fileID
,
&
varID
,
&
levelID
);
p
streamInqRecord
(
fileID
,
&
varID
,
&
levelID
);
if
(
fileID
==
0
)
{
...
...
src/Exprf.cc
View file @
03a395ea
...
...
@@ -341,7 +341,7 @@ void *Expr(void *argument)
vlistDefFlag
(
vlistID1
,
varID
,
levID
,
TRUE
);
}
}
v
listCopyFlag
(
vlistID2
,
vlistID1
);
cdoV
listCopyFlag
(
vlistID2
,
vlistID1
);
}
for
(
int
pidx
=
0
;
pidx
<
parse_arg
.
nparams
;
pidx
++
)
...
...
src/MapReduce.cc
View file @
03a395ea
...
...
@@ -146,7 +146,7 @@ void *MapReduce(void *argument)
}
}
int
vlistID2
=
vlistCreate
();
v
listCopyFlag
(
vlistID2
,
vlistID1
);
cdoV
listCopyFlag
(
vlistID2
,
vlistID1
);
/* }}} */
int
taxisID1
=
vlistInqTaxis
(
vlistID1
);
...
...
src/Mrotuv.cc
View file @
03a395ea
...
...
@@ -290,13 +290,13 @@ void *Mrotuv(void *argument)
vlistClearFlag
(
vlistID1
);
for
(
int
lid
=
0
;
lid
<
nlevs
;
lid
++
)
vlistDefFlag
(
vlistID1
,
uid
,
lid
,
TRUE
);
int
vlistID2
=
vlistCreate
();
v
listCopyFlag
(
vlistID2
,
vlistID1
);
cdoV
listCopyFlag
(
vlistID2
,
vlistID1
);
vlistChangeVarGrid
(
vlistID2
,
0
,
gridIDu
);
vlistClearFlag
(
vlistID1
);
for
(
int
lid
=
0
;
lid
<
nlevs
;
lid
++
)
vlistDefFlag
(
vlistID1
,
vid
,
lid
,
TRUE
);
int
vlistID3
=
vlistCreate
();
v
listCopyFlag
(
vlistID3
,
vlistID1
);
cdoV
listCopyFlag
(
vlistID3
,
vlistID1
);
vlistChangeVarGrid
(
vlistID3
,
0
,
gridIDv
);
int
taxisID1
=
vlistInqTaxis
(
vlistID1
);
...
...
src/Select.cc
View file @
03a395ea
...
...
@@ -428,7 +428,7 @@ void *Select(void *argument)
//if ( cdoVerbose ) vlistPrint(vlistID0);
vlistID2
=
vlistCreate
();
v
listCopyFlag
(
vlistID2
,
vlistID0
);
cdoV
listCopyFlag
(
vlistID2
,
vlistID0
);
//if ( cdoVerbose ) vlistPrint(vlistID2);
...
...
src/Selmulti.cc
View file @
03a395ea
...
...
@@ -326,7 +326,7 @@ void *Selmulti(void *argument)
if
(
cdoDebugExt
)
cdoPrint
(
" Writing the selected fields ..."
);
int
vlistID2
=
vlistCreate
();
v
listCopyFlag
(
vlistID2
,
vlistID1
);
cdoV
listCopyFlag
(
vlistID2
,
vlistID1
);
nvars
=
vlistNvars
(
vlistID2
);
for
(
varID
=
0
;
varID
<
nvars
;
++
varID
)
...
...
src/Seloperator.cc
View file @
03a395ea
...
...
@@ -89,7 +89,7 @@ void *Seloperator(void *argument)
cdoWarning
(
"Code %d, ltype %d, level %g not found!"
,
scode
,
sltype
,
slevel
);
int
vlistID2
=
vlistCreate
();
v
listCopyFlag
(
vlistID2
,
vlistID1
);
cdoV
listCopyFlag
(
vlistID2
,
vlistID1
);
int
taxisID1
=
vlistInqTaxis
(
vlistID1
);
int
taxisID2
=
taxisDuplicate
(
taxisID1
);
...
...
src/Selvar.cc
View file @
03a395ea
...
...
@@ -285,7 +285,7 @@ void *Selvar(void *argument)
if
(
npar
==
0
)
cdoAbort
(
"No variables selected!"
);
int
vlistID2
=
vlistCreate
();
v
listCopyFlag
(
vlistID2
,
vlistID1
);
cdoV
listCopyFlag
(
vlistID2
,
vlistID1
);
nvars
=
vlistNvars
(
vlistID2
);
for
(
varID
=
0
;
varID
<
nvars
;
++
varID
)
...
...
src/Setpartab.cc
View file @
03a395ea
...
...
@@ -437,7 +437,7 @@ void *Setpartab(void *argument)
}
int
vlistIDx
=
vlistCreate
();
v
listCopyFlag
(
vlistIDx
,
vlistID2
);
cdoV
listCopyFlag
(
vlistIDx
,
vlistID2
);
vlistDestroy
(
vlistID2
);
...
...
src/Split.cc
View file @
03a395ea
...
...
@@ -141,7 +141,7 @@ void *Split(void *argument)
}
vlistID2
=
vlistCreate
();
v
listCopyFlag
(
vlistID2
,
vlistID1
);
cdoV
listCopyFlag
(
vlistID2
,
vlistID1
);
vlistIDs
[
index
]
=
vlistID2
;
if
(
codes
[
index
]
>
9999
)
...
...
@@ -206,7 +206,7 @@ void *Split(void *argument)
}
vlistID2
=
vlistCreate
();
v
listCopyFlag
(
vlistID2
,
vlistID1
);
cdoV
listCopyFlag
(
vlistID2
,
vlistID1
);
vlistIDs
[
index
]
=
vlistID2
;
cdiParamToString
(
params
[
index
],
paramstr
,
sizeof
(
paramstr
));
...
...
@@ -259,7 +259,7 @@ void *Split(void *argument)
}
}
vlistID2
=
vlistCreate
();
v
listCopyFlag
(
vlistID2
,
vlistID1
);
cdoV
listCopyFlag
(
vlistID2
,
vlistID1
);
vlistIDs
[
index
]
=
vlistID2
;
sprintf
(
filename
+
nchars
,
"%03d"
,
tabnums
[
index
]);
...
...
@@ -290,7 +290,7 @@ void *Split(void *argument)
}
vlistID2
=
vlistCreate
();
v
listCopyFlag
(
vlistID2
,
vlistID1
);
cdoV
listCopyFlag
(
vlistID2
,
vlistID1
);
vlistIDs
[
index
]
=
vlistID2
;
filename
[
nchars
]
=
'\0'
;
...
...
@@ -346,7 +346,7 @@ void *Split(void *argument)
}
}
vlistID2
=
vlistCreate
();
v
listCopyFlag
(
vlistID2
,
vlistID1
);
cdoV
listCopyFlag
(
vlistID2
,
vlistID1
);
vlistIDs
[
index
]
=
vlistID2
;
sprintf
(
filename
+
nchars
,
"%06g"
,
levels
[
index
]);
...
...
@@ -386,7 +386,7 @@ void *Split(void *argument)
}
}
vlistID2
=
vlistCreate
();
v
listCopyFlag
(
vlistID2
,
vlistID1
);
cdoV
listCopyFlag
(
vlistID2
,
vlistID1
);
vlistIDs
[
index
]
=
vlistID2
;
sprintf
(
filename
+
nchars
,
"%02d"
,
vlistGridIndex
(
vlistID1
,
gridIDs
[
index
])
+
1
);
...
...
@@ -424,7 +424,7 @@ void *Split(void *argument)
}
}
vlistID2
=
vlistCreate
();
v
listCopyFlag
(
vlistID2
,
vlistID1
);
cdoV
listCopyFlag
(
vlistID2
,
vlistID1
);
vlistIDs
[
index
]
=
vlistID2
;
sprintf
(
filename
+
nchars
,
"%02d"
,
vlistZaxisIndex
(
vlistID1
,
zaxisIDs
[
index
])
+
1
);
...
...
src/Splitrec.cc
View file @
03a395ea
...
...
@@ -76,7 +76,7 @@ void *Splitrec(void *argument)
vlistDefFlag
(
vlistID1
,
varID
,
levelID
,
TRUE
);
int
vlistID2
=
vlistCreate
();
v
listCopyFlag
(
vlistID2
,
vlistID1
);
cdoV
listCopyFlag
(
vlistID2
,
vlistID1
);
index
++
;
sprintf
(
filename
+
nchars
,
"%06d"
,
index
);
...
...
src/Subtrend.cc
View file @
03a395ea
...
...
@@ -76,7 +76,7 @@ void *Subtrend(void *argument)
}
tsID
=
0
;
nrecs
=
streamInqTimestep
(
streamID3
,
tsID
);
nrecs
=
p
streamInqTimestep
(
streamID3
,
tsID
);
for
(
int
recID
=
0
;
recID
<
nrecs
;
recID
++
)
{
...
...
src/Timstat2.cc
View file @
03a395ea
...
...
@@ -245,7 +245,7 @@ void *Timstat2(void *argument)
tsID
=
0
;
taxisDefVdate
(
taxisID3
,
vdate
);
taxisDefVtime
(
taxisID3
,
vtime
);
streamDefTimestep
(
streamID3
,
tsID
);
p
streamDefTimestep
(
streamID3
,
tsID
);
for
(
int
recID
=
0
;
recID
<
nrecs3
;
recID
++
)
{
...
...
src/Trms.cc
View file @
03a395ea
...
...
@@ -109,7 +109,7 @@ void *Trms(void *argument)
if
(
pvarID
==
-
1
)
cdoAbort
(
"pressure variable missing!"
);
int
vlistID3
=
vlistCreate
();
v
listCopyFlag
(
vlistID3
,
vlistID1
);
cdoV
listCopyFlag
(
vlistID3
,
vlistID1
);
int
taxisID1
=
vlistInqTaxis
(
vlistID1
);
int
taxisID3
=
taxisDuplicate
(
taxisID1
);
...
...
src/Varrms.cc
View file @
03a395ea
...
...
@@ -65,7 +65,7 @@ void *Varrms(void *argument)
vlistDefFlag
(
vlistID1
,
varID
,
0
,
TRUE
);
int
vlistID3
=
vlistCreate
();
v
listCopyFlag
(
vlistID3
,
vlistID1
);
cdoV
listCopyFlag
(
vlistID3
,
vlistID1
);
int
taxisID1
=
vlistInqTaxis
(
vlistID1
);
int
taxisID3
=
taxisDuplicate
(
taxisID1
);
...
...
Prev
1
2
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