Commit 4b86c289 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

runpctl: fails since release 1.8.0 (bug fix).

parent b1e554ad
......@@ -3,6 +3,10 @@
* Using CDI library version 1.9.3
* Version 1.9.3 release
2018-01-11 Uwe Schulzweida
* runpctl: fails since release 1.8.0 (bug fix)
2017-12-26 Uwe Schulzweida
* read of reduced Gaussian grid description file failed [Bug #8146]
......
......@@ -114,12 +114,12 @@ void *Runpctl(void *argument)
for ( int i = 0; i < gridsize; i++ )
{
int j = 0;
for ( int inp = 0, j = 0; inp < ndates; inp++ )
for ( int inp = 0; inp < ndates; inp++ )
{
double val = vars1[inp][varID][levelID].ptr[i];
if ( !DBL_IS_EQUAL(val, missval) ) array[j++] = val;
}
printf("j = %d ndates = %d\n", j, ndates);
if ( j > 0 )
{
vars1[0][varID][levelID].ptr[i] = percentile(array, j, pn);
......
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