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

Revert "Removed unused grid_t member extraData."

* extraData will be used after all.
parent 3bfea65a
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -29,6 +29,7 @@ static bool cdfLazyInitialized;
void
cdfLazyGridDestroy(struct cdfLazyGrid *lazyGrid)
{
lazyGrid->base.extraData = NULL;
if (lazyGrid->base.area == cdfPendingLoad) lazyGrid->base.area = NULL;
if (lazyGrid->base.x.vals == cdfPendingLoad) lazyGrid->base.x.vals = NULL;
if (lazyGrid->base.y.vals == cdfPendingLoad) lazyGrid->base.y.vals = NULL;
......
......@@ -162,6 +162,8 @@ grid_init(grid_t *gridptr)
gridptr->atts.nelems = 0;
cdiDefVarKeyInt(&gridptr->keys, CDI_KEY_DATATYPE, CDI_DATATYPE_FLT64);
gridptr->extraData = NULL;
}
static void
......
......@@ -132,6 +132,7 @@ struct grid_t
const struct gridVirtTable *vtable;
cdi_keys_t keys;
cdi_atts_t atts;
void *extraData;
};
void grid_init(grid_t *gridptr);
......
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