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
cdo
Commits
00cce37d
Commit
00cce37d
authored
Jan 05, 2018
by
Uwe Schulzweida
Browse files
Replaced vlistInqVarEnsemble() by cdiInqKeyInt().
parent
e0955a43
Changes
1
Show whitespace changes
Inline
Side-by-side
src/Sinfo.cc
View file @
00cce37d
...
...
@@ -188,9 +188,11 @@ void *Sinfo(void *argument)
/* ensemble information */
if
(
lensemble
)
{
int
ensID
,
ensCount
,
forecast_type
;
if
(
vlistInqVarEnsemble
(
vlistID
,
varID
,
&
ensID
,
&
ensCount
,
&
forecast_type
)
)
fprintf
(
stdout
,
"%2d/%-2d "
,
ensID
,
ensCount
);
int
perturbationNumber
,
numberOfForecastsInEnsemble
;
int
r1
=
cdiInqKeyInt
(
vlistID
,
varID
,
CDI_KEY_PERTURBATIONNUMBER
,
&
perturbationNumber
);
int
r2
=
cdiInqKeyInt
(
vlistID
,
varID
,
CDI_KEY_NUMBEROFFORECASTSINENSEMBLE
,
&
numberOfForecastsInEnsemble
);
if
(
r1
==
0
&&
r2
==
0
)
fprintf
(
stdout
,
"%2d/%-2d "
,
perturbationNumber
,
numberOfForecastsInEnsemble
);
else
fprintf
(
stdout
,
"--/-- "
);
}
...
...
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