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

gridPrint/zaxisPrint: removed parameter index.

parent 86f9adc5
......@@ -334,15 +334,20 @@ void *Filedes(void *argument)
if ( operatorID == GRIDDES || operatorID == GRIDDES2 )
{
int opt = 0;
if ( operatorID == GRIDDES ) opt = 1;
int opt = (operatorID == GRIDDES) ? 1 : 0;
for ( int index = 0; index < ngrids; index++ )
gridPrint(vlistGrid(vlistID, index), index+1, opt);
{
printf("#\n" "# gridID %d\n" "#\n", index+1);
gridPrint(vlistGrid(vlistID, index), opt);
}
}
else if ( operatorID == ZAXISDES )
{
for ( int index = 0; index < nzaxis; index++ )
zaxisPrint(vlistZaxis(vlistID, index), index+1);
{
printf("#\n" "# zaxisID %d\n" "#\n", index+1);
zaxisPrint(vlistZaxis(vlistID, index));
}
}
else if ( operatorID == VCT || operatorID == VCT2 )
{
......
......@@ -231,10 +231,7 @@ void *Importbinary(void *argument)
if ( nvars == 0 ) cdoAbort("No variables found!");
int gridID = define_grid(&pfi);
if ( cdoVerbose ) gridPrint(gridID, gridID, 1);
int zaxisID = define_level(&pfi, 0);
if ( cdoVerbose ) zaxisPrint(zaxisID, zaxisID);
int zaxisIDsfc = zaxisCreate(ZAXIS_SURFACE, 1);
zaxisDefLevels(zaxisIDsfc, &sfclevel);
......
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