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

Annotate room for improvement.

parent 0c2cf532
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -161,6 +161,8 @@ cdiPioClientStreamWriteVarChunk_(int streamID, int varID, int memtype, const int
if (memtype != MEMTYPE_DOUBLE && memtype != MEMTYPE_FLOAT) Error("Writing of type data %d not implemented!", 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 };
......
......@@ -349,6 +349,7 @@ buildVarSlicesIdxList(int vlistID, int varID, int startLvl, int numLvl, const st
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