summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2015-05-12 15:39:10 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2015-05-12 15:39:10 (GMT)
commitf7e10b55ab75857e8a5bade01749842b060b5783 (patch)
treeb2bcc608e40f5fdb86afdd971e36531638266e82 /examples
parent5b92a99024214884428796394fef7376c2d09f3f (diff)
downloadhdf5-f7e10b55ab75857e8a5bade01749842b060b5783.zip
hdf5-f7e10b55ab75857e8a5bade01749842b060b5783.tar.gz
hdf5-f7e10b55ab75857e8a5bade01749842b060b5783.tar.bz2
[svn-r27053] Add more tests for unlimited selections.
Fix off by 1 error involving minimum extent of VDS. Other minor fixes/cleanup. Tested: ummon
Diffstat (limited to 'examples')
-rw-r--r--examples/h5_vds-percival-unlim-maxmin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/h5_vds-percival-unlim-maxmin.c b/examples/h5_vds-percival-unlim-maxmin.c
index 4640b94..feace69 100644
--- a/examples/h5_vds-percival-unlim-maxmin.c
+++ b/examples/h5_vds-percival-unlim-maxmin.c
@@ -211,13 +211,13 @@ main (void)
dapl = H5Pcreate (H5P_DATASET_ACCESS);
for(i = 0; i < 2; i++) {
- status = H5Pset_virtual_dataspace_bounds (dapl, i ? H5D_VDS_MAX : H5D_VDS_MIN);
+ status = H5Pset_virtual_view (dapl, i ? H5D_VDS_LAST_AVAILABLE : H5D_VDS_FIRST_MISSING);
vdset = H5Dopen (vfile, DATASET, dapl);
/* Let's get space of the VDS and its dimension; we should get 32(or 20)x10x10 */
vspace = H5Dget_space (vdset);
H5Sget_simple_extent_dims (vspace, vdsdims_out, vdsdims_max_out);
- printf ("VDS dimensions, bounds = H5D_VDS_M%s: ", i ? "AX" : "IN");
+ printf ("VDS dimensions, bounds = H5D_VDS_%s: ", i ? "LAST_AVAILABLE" : "FIRST_MISSING");
for (j=0; j<RANK; j++)
printf (" %d ", (int)vdsdims_out[j]);
printf ("\n");