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
0e48859b
Commit
0e48859b
authored
Aug 09, 2020
by
Uwe Schulzweida
Browse files
grib_set_long: switch of status check for typeOfTimeIncrement.
parent
f73117d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_gribapi.c
View file @
0e48859b
...
...
@@ -3070,7 +3070,7 @@ size_t gribapiEncode(int varID, int levelID, int vlistID, int gridID, int zaxisI
{
int
typeOfTimeIncrement
=
0
;
int
status
=
cdiInqKeyInt
(
vlistID
,
varID
,
CDI_KEY_TYPEOFTIMEINCREMENT
,
&
typeOfTimeIncrement
);
if
(
status
==
0
)
GRIB_CHECK
(
my_
grib_set_long
(
gh
,
"typeOfTimeIncrement"
,
(
long
)
typeOfTimeIncrement
)
,
0
)
;
if
(
status
==
0
)
grib_set_long
(
gh
,
"typeOfTimeIncrement"
,
(
long
)
typeOfTimeIncrement
);
}
{
...
...
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