Commit 64ae3834 authored by Kenneth Leiter's avatar Kenneth Leiter
Browse files

ENH: Modify XdmfHDF5Controller to work with new multidimensional support.

parent b8ea021a
......@@ -98,8 +98,7 @@ XdmfHDF5Controller::read(XdmfArray * const array, const int fapl)
&count[0],
NULL);
hssize_t numVals = H5Sget_select_npoints(dataspace);
hsize_t dims[1];
dims[0] = numVals;
// hid_t memspace = H5Screate_simple(1, dims, NULL);
// hsize_t memStart[] = {0};
// hsize_t memStride[] = {1};
......@@ -107,7 +106,10 @@ XdmfHDF5Controller::read(XdmfArray * const array, const int fapl)
//status = H5Sselect_hyperslab(memspace, H5S_SELECT_SET, memStart, memStride, memCount, NULL);
hid_t datatype = H5Dget_type(dataset);
array->initialize(mType, (const unsigned int)numVals);
array->initialize(mType, mDimensions);
assert(numVals == array->getSize());
status = H5Dread(dataset,
datatype,
H5S_ALL,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment