Skip to content
Snippets Groups Projects
Commit d1c9872f authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cdfDefVar: compress data on GRID_GENERIC.

parent 85fa1151
No related branches found
No related tags found
1 merge request!34Version 2.2.0
......@@ -862,9 +862,10 @@ cdfDefVar(stream_t *streamptr, int varID)
const int zaxisindex = vlistZaxisIndex(vlistID, zaxisID);
const int zid = streamptr->zaxisID[zaxisindex];
int dimorder[3]; // ZYX and ZXY
int dimorder[3]; // ZYX/321 and ZXY/312
vlistInqVarDimorder(vlistID, varID, &dimorder);
const bool useChunks = (dimorder[0] == 3) ? (gridsize >= 32) : false;
const bool useGridsize = (dimorder[0] == 3) || (dimorder[1] == 3 && dimorder[2] == 1 && gridsize == gridInqXsize(gridID));
const bool useChunks = useGridsize ? (gridsize >= 32) : false;
if (((dimorder[0] > 0) + (dimorder[1] > 0) + (dimorder[2] > 0))
< ((xid != CDI_UNDEFID) + (yid != CDI_UNDEFID) + (zid != CDI_UNDEFID)))
......
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