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
b573f034
Commit
b573f034
authored
Jun 03, 2015
by
Uwe Schulzweida
Browse files
vlistInqVarCode: cleanup
parent
f5e87021
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/vlist_var.c
View file @
b573f034
...
...
@@ -407,7 +407,8 @@ int vlistInqVarCode(int vlistID, int varID)
int
param
=
vlistptr
->
vars
[
varID
].
param
;
int
pdis
,
pcat
,
pnum
;
cdiDecodeParam
(
param
,
&
pnum
,
&
pcat
,
&
pdis
);
int
code
=
pdis
==
255
?
pnum
:
-
varID
-
1
;
int
code
=
pnum
;
if
(
pdis
!=
255
)
code
=
-
varID
-
1
;
// GRIB2 Parameter
if
(
code
<
0
&&
vlistptr
->
vars
[
varID
].
tableID
!=
-
1
&&
vlistptr
->
vars
[
varID
].
name
!=
NULL
)
{
...
...
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