Commit 22fdcbd3 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

added grid type GRID_NUMBER

parent 13c3b1b5
......@@ -260,6 +260,15 @@ void printGridInfo(int vlistID)
nd = gridInqGMEnd(gridID);
fprintf(stdout, "size : dim = %d nd = %d ni = %d\n", gridsize, nd, ni);
}
else if ( gridtype == GRID_NUMBER )
{
int number, position;
number = gridInqNumber(gridID);
position = gridInqPosition(gridID);
fprintf(stdout, "size : dim = %d\n", gridsize);
fprintf(stdout, "%*s", nbyte0, "");
fprintf(stdout, "grid : number = %d position = %d\n", number, position);
}
else if ( gridtype == GRID_CURVILINEAR || gridtype == GRID_UNSTRUCTURED )
{
if ( gridtype == GRID_CURVILINEAR )
......
......@@ -2555,6 +2555,12 @@ int gridGenerate(grid_t grid)
gridDefGMEni3(gridID, grid.ni3);
break;
}
case GRID_NUMBER:
{
gridDefNumber(gridID, grid.number);
gridDefPosition(gridID, grid.position);
break;
}
/*
case GRID_GENERIC:
{
......
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