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

Annotate room for improvement.

parent afb4cf25
No related branches found
No related tags found
No related merge requests found
......@@ -187,6 +187,8 @@ cdiPioClientStreamWriteVarChunk_(int streamID, int varID, int memtype,
int vlistID = streamInqVlist(streamID);
int size = vlistInqVarSize(vlistID, varID),
varShape[3];
/* FIXME: ndims does not work this way, ndims == 2 means
* varShape[1] == 1 and can be left out */
unsigned ndims = (unsigned)cdiPioQueryVarDims(varShape, vlistID, varID);
Xt_int varShapeXt[3], origin[3] = { 0, 0, 0 };
int chunkShape[3] = { 1, 1, 1 };
......
......@@ -408,6 +408,7 @@ buildVarSlicesIdxList(int vlistID, int varID, int startLvl, int numLvl,
Xt_idxlist idxlist;
if ( conf->stripify )
{
/* FIXME: does not support grids larger than INT_MAX cells */
int sliceSize = varShape[0] * varShape[1];
Xt_int start = sliceSize * origin[0];
int nstrides = sliceSize * sliceShape[0];
......
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