Skip to content
Snippets Groups Projects
Commit 6625e7b0 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Add support for unstructured grids to PIO part.

parent e7f92e1f
No related branches found
No related tags found
No related merge requests found
......@@ -201,15 +201,18 @@ cdiPioQueryVarDims(int varShape[3], int vlistID, int varID)
varShape[0] = 2;
varShape[1] = gridInqSize(gridID) / 2;
break;
case GRID_UNSTRUCTURED:
varShape[0] = gridInqSize(gridID);
varShape[1] = 1;
break;
case GRID_GENERIC:
case GRID_PROJECTION:
case GRID_GME:
case GRID_UNSTRUCTURED:
xabort("unimplemented grid type: %d", gridType);
}
varShape[2] = zaxisInqSize(zaxisID);
/* FIXME: other grids have different dimensionality */
return (varShape[2] == 1)?2:3;
return (varShape[2] > 1)?2:3;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment