Commit b7694ccd authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

collgrid: combination of nx and names does not work (bug fix).

parent 00f71264
......@@ -3,6 +3,10 @@
* Using CDI library version 1.8.1
* Version 1.8.1 release
2017-03-29 Uwe Schulzweida
* collgrid: combination of nx and names does not work (bug fix)
2017-03-24 Uwe Schulzweida
* remap_grids_init: bug fix for CDI_PROJ_LCC
......
......@@ -300,9 +300,8 @@ int genGrid(int nfiles, ens_file_t *ef, int **gridindex, int igrid, int nxblocks
void *Collgrid(void *argument)
{
int nxblocks = -1;
int varID;
int varID, levelID;
int nrecs, nrecs0;
int levelID;
int nmiss;
double missval;
......@@ -336,6 +335,7 @@ void *Collgrid(void *argument)
for ( varID = 0; varID < nvars; varID++ ) vars1[varID] = false;
int nsel = operatorArgc();
int noff = 0;
if ( nsel > 0 )
{
......@@ -345,6 +345,7 @@ void *Collgrid(void *argument)
if ( len == -1 )
{
nsel--;
noff++;
nxblocks = parameter2int(operatorArgv()[0]);
}
}
......@@ -355,7 +356,7 @@ void *Collgrid(void *argument)
}
else
{
char **argnames = operatorArgv();
char **argnames = operatorArgv() + noff;
if ( cdoVerbose )
for ( int i = 0; i < nsel; i++ )
......
Supports Markdown
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