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
afcbffb7
Commit
afcbffb7
authored
May 27, 2013
by
Uwe Schulzweida
Browse files
grib2GetLevel: set level bounds if 0 < leveltype2 < 255
parent
6eef9bbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_gribapi.c
View file @
afcbffb7
...
...
@@ -724,7 +724,7 @@ void grib2GetLevel(grib_handle *gh, int *leveltype, int *lbounds, int *level1, i
status
=
grib_get_long
(
gh
,
"typeOfSecondFixedSurface"
,
&
lpar
);
if
(
status
==
0
)
leveltype2
=
lpar
;
if
(
*
leveltype
!=
255
&&
*
leveltype2
!=
255
&&
*
leveltype2
>
0
)
*
lbounds
=
1
;
if
(
*
leveltype
!=
255
&&
leveltype2
!=
255
&&
leveltype2
>
0
)
*
lbounds
=
1
;
if
(
*
lbounds
==
0
)
{
...
...
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