Commit 6c3e1753 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Clarify conditional block.

parent a0b63d88
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment