Skip to content
GitLab
Menu
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
61dcf543
Commit
61dcf543
authored
Nov 05, 2014
by
Thomas Jahns
🤸
Browse files
Save compilation of dummy wrapper.
* Move corresponding check for missing format support to caller.
parent
87136937
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/stream_grb.c
View file @
61dcf543
...
...
@@ -346,7 +346,7 @@ int grbScanTimestep2(stream_t * streamptr)
static
int
grbScanTimestep
(
stream_t
*
streamptr
)
{
int
status
;
int
status
=
CDI_EUFTYPE
;
int
filetype
;
filetype
=
streamptr
->
filetype
;
...
...
@@ -358,9 +358,11 @@ int grbScanTimestep(stream_t * streamptr)
}
else
#endif
{
status
=
gribapiScanTimestep
(
streamptr
);
}
#ifdef HAVE_LIBGRIB_API
status
=
gribapiScanTimestep
(
streamptr
);
#else
Error
(
"Sufficient GRIB support unavailable!"
);
#endif
return
(
status
);
}
...
...
src/stream_gribapi.c
View file @
61dcf543
...
...
@@ -1737,10 +1737,10 @@ int gribapiScanTimestep2(stream_t * streamptr)
}
#if defined (HAVE_LIBGRIB_API)
int
gribapiScanTimestep
(
stream_t
*
streamptr
)
{
int
rstatus
=
0
;
#if defined (HAVE_LIBGRIB_API)
size_t
recsize
=
0
;
off_t
recpos
=
0
;
unsigned
char
*
gribbuffer
;
...
...
@@ -2017,12 +2017,9 @@ int gribapiScanTimestep(stream_t * streamptr)
}
rstatus
=
(
int
)
streamptr
->
ntsteps
;
#else
Error
(
"GRIB_API support not compiled in!"
);
#endif
return
(
rstatus
);
}
#endif
#ifdef gribWarning
#undef gribWarning
...
...
Write
Preview
Supports
Markdown
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