diff --git a/examples/hdfgroup/H5D/h5ex_d_fillval.cpp b/examples/hdfgroup/H5D/h5ex_d_fillval.cpp index 96a78698b3..b3a0568598 100644 --- a/examples/hdfgroup/H5D/h5ex_d_fillval.cpp +++ b/examples/hdfgroup/H5D/h5ex_d_fillval.cpp @@ -32,25 +32,14 @@ using Int32Matrix = Matrix; int main (void) { - - herr_t status; - hsize_t dims[2] = {DIM0, DIM1}, - extdims[2] = {EDIM0, EDIM1}, - maxdims[2] = {H5S_UNLIMITED, H5S_UNLIMITED}, - chunk[2] = {CHUNK0, CHUNK1}; - int wdata[DIM0][DIM1], /* Write buffer */ - rdata[DIM0][DIM1], /* Read buffer */ - rdata2[EDIM0][EDIM1], /* Read buffer for - extenstion */ - fillval, - Int32Matrix rdata,wdata; + Matrix rdata2; /* * Initialize data. */ for (size_t i=0; i(),space,lcpl,dcpl); /* * Read values from the dataset, which has not been written to yet. */ - status = H5Dread (dset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, - rdata[0]); - - /* - * Output the data to the screen. - */ - printf ("Dataset before being written to:\n"); - for (i=0; i