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
libcdi
Commits
6c3e1753
Commit
6c3e1753
authored
Dec 08, 2014
by
Thomas Jahns
🤸
Browse files
Clarify conditional block.
parent
a0b63d88
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream.c
View file @
6c3e1753
...
...
@@ -2157,25 +2157,26 @@ void cdiStreamSetupVlist(stream_t *streamptr, int vlistID, int vlistIDorig)
}
if
(
streamptr
->
filemode
==
'w'
)
{
if
(
streamptr
->
filetype
==
FILETYPE_NC
||
streamptr
->
filetype
==
FILETYPE_NC2
||
streamptr
->
filetype
==
FILETYPE_NC4
||
streamptr
->
filetype
==
FILETYPE_NC4C
)
{
switch
(
streamptr
->
filetype
)
{
#ifdef HAVE_LIBNETCDF
case
FILETYPE_NC
:
case
FILETYPE_NC2
:
case
FILETYPE_NC4
:
case
FILETYPE_NC4C
:
{
void
(
*
myCdfDefVars
)(
stream_t
*
streamptr
)
=
(
void
(
*
)(
stream_t
*
))
namespaceSwitchGet
(
NSSWITCH_CDF_STREAM_SETUP
).
func
;
myCdfDefVars
(
streamptr
);
#endif
}
else
if
(
streamptr
->
filetype
==
FILETYPE_GRB
||
streamptr
->
filetype
==
FILETYPE_GRB2
)
{
gribContainersNew
(
streamptr
);
}
}
break
;
#endif
case
FILETYPE_GRB
:
case
FILETYPE_GRB2
:
gribContainersNew
(
streamptr
);
break
;
}
}
...
...
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