Commit 00cce37d authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Replaced vlistInqVarEnsemble() by cdiInqKeyInt().

parent e0955a43
...@@ -188,9 +188,11 @@ void *Sinfo(void *argument) ...@@ -188,9 +188,11 @@ void *Sinfo(void *argument)
/* ensemble information */ /* ensemble information */
if ( lensemble ) if ( lensemble )
{ {
int ensID, ensCount, forecast_type; int perturbationNumber, numberOfForecastsInEnsemble;
if ( vlistInqVarEnsemble(vlistID, varID, &ensID, &ensCount, &forecast_type) ) int r1 = cdiInqKeyInt(vlistID, varID, CDI_KEY_PERTURBATIONNUMBER, &perturbationNumber);
fprintf(stdout, "%2d/%-2d ", ensID, ensCount); int r2 = cdiInqKeyInt(vlistID, varID, CDI_KEY_NUMBEROFFORECASTSINENSEMBLE, &numberOfForecastsInEnsemble);
if ( r1 == 0 && r2 == 0 )
fprintf(stdout, "%2d/%-2d ", perturbationNumber, numberOfForecastsInEnsemble);
else else
fprintf(stdout, "--/-- "); fprintf(stdout, "--/-- ");
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment