Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
4ae7db34
Commit
4ae7db34
authored
Jun 30, 2017
by
Oliver Heidmann
Browse files
replaced redundant code with a function call
parent
21c93b3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pipe.cc
View file @
4ae7db34
...
...
@@ -588,12 +588,7 @@ pipeReadRecord(pstream_t *pstreamptr, double *data, int *nmiss)
if
(
!
pipe
->
data
)
Error
(
"No data pointer for %s"
,
pname
);
vlistID
=
pstreamptr
->
vlistID
;
datasize
=
gridInqSize
(
vlistInqVarGrid
(
vlistID
,
pipe
->
varID
));
if
(
vlistNumber
(
vlistID
)
!=
CDI_REAL
)
datasize
*=
2
;
memcpy
(
data
,
pipe
->
data
,
datasize
*
sizeof
(
double
));
*
nmiss
=
pipe
->
nmiss
;
pipeReadPipeRecord
(
pipe
,
data
,
pname
,
pstreamptr
->
vlistID
,
nmiss
);
}
else
Error
(
"Internal problem! istream undefined"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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