Skip to content
Snippets Groups Projects
Commit 2af6d54d authored by Thomas Jahns's avatar Thomas Jahns :cartwheel: Committed by Sergey Kosukhin
Browse files

Add support for unstructured grids to PIO part.

parent a9ab2b61
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -188,14 +188,17 @@ 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);
case GRID_GME: 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;
}
void
......
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