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
libcdi
Commits
ea63f708
Commit
ea63f708
authored
Aug 07, 2014
by
Uwe Schulzweida
Browse files
patch from Nathanael Huebbe: 0016 use cdfReadVarSliceSP() in cdiStreamReadVarSlice()
parent
18af1074
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream.c
View file @
ea63f708
...
...
@@ -1608,9 +1608,13 @@ void cdiStreamReadVarSlice(int streamID, int varID, int levelID, int memtype, vo
case
FILETYPE_NC2
:
case
FILETYPE_NC4
:
case
FILETYPE_NC4C
:
if
(
memtype
==
MEMTYPE_FLOAT
)
Error
(
"cdfReadVarSlice not implemented for memtype float!"
);
cdfReadVarSliceDP
(
streamptr
,
varID
,
levelID
,
data
,
nmiss
);
break
;
{
if
(
memtype
==
MEMTYPE_FLOAT
)
cdfReadVarSliceSP
(
streamptr
,
varID
,
levelID
,
data
,
nmiss
);
else
cdfReadVarSliceDP
(
streamptr
,
varID
,
levelID
,
data
,
nmiss
);
break
;
}
#endif
default:
{
...
...
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