Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
270f330a
Commit
270f330a
authored
Jan 24, 2018
by
Uwe Schulzweida
Browse files
Narrow scope of backgroundProcess.
parent
cd55e4f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_gribapi.c
View file @
270f330a
...
...
@@ -3034,8 +3034,6 @@ size_t gribapiEncode(int varID, int levelID, int vlistID, int gridID, int zaxisI
int
datatype
=
vlistInqVarDatatype
(
vlistID
,
varID
);
int
typeOfGeneratingProcess
=
0
;
cdiInqKeyInt
(
vlistID
,
varID
,
CDI_KEY_TYPEOFGENERATINGPROCESS
,
&
typeOfGeneratingProcess
);
int
backgroundProcess
=
0
;
cdiInqKeyInt
(
vlistID
,
varID
,
CDI_KEY_BACKGROUNDPROCESS
,
&
backgroundProcess
);
int
productDefinitionTemplate
=
0
;
cdiInqKeyInt
(
vlistID
,
varID
,
CDI_KEY_PRODUCTDEFINITIONTEMPLATE
,
&
productDefinitionTemplate
);
...
...
@@ -3058,6 +3056,8 @@ size_t gribapiEncode(int varID, int levelID, int vlistID, int gridID, int zaxisI
{
if
(
!
gc
->
init
)
{
int
backgroundProcess
=
0
;
cdiInqKeyInt
(
vlistID
,
varID
,
CDI_KEY_BACKGROUNDPROCESS
,
&
backgroundProcess
);
GRIB_CHECK
(
my_grib_set_long
(
gh
,
"typeOfGeneratingProcess"
,
typeOfGeneratingProcess
),
0
);
GRIB_CHECK
(
my_grib_set_long
(
gh
,
"backgroundProcess"
,
backgroundProcess
),
0
);
int
status
,
tablesVersion
,
localTablesVersion
;
...
...
Write
Preview
Markdown
is supported
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