From eda6bf097aec520926d91e10319420edef1fc95b Mon Sep 17 00:00:00 2001 From: Elena Pourmal Date: Tue, 5 May 2015 15:41:21 -0500 Subject: [svn-r27024] Modified Percival example to read VDS data. First, the example reads all VDS data, then the data that is in the first source dataset. Tested on jam. --- examples/h5_vds-percival-unlim.c | 79 +++++++++++++++++++++++++++++++++++----- 1 file changed, 69 insertions(+), 10 deletions(-) diff --git a/examples/h5_vds-percival-unlim.c b/examples/h5_vds-percival-unlim.c index eaa83b4..b1acae1 100644 --- a/examples/h5_vds-percival-unlim.c +++ b/examples/h5_vds-percival-unlim.c @@ -64,13 +64,15 @@ main (void) stride_out[3], count_out[3], block_out[3]; - int i, j; + int i, j, k; H5D_layout_t layout; /* Storage layout */ size_t num_map; /* Number of mappings */ ssize_t len; /* Length of the string; also a return value */ char *filename; char *dsetname; int wdata[DIM0_1*DIM1*DIM2]; + int rdata[80][10][10]; + int a_rdata[20][10][10]; /* * Create source files and datasets. This step is optional. @@ -193,15 +195,6 @@ main (void) status = H5Fclose (file); } - /* Let's get space of the VDS and its dimension; we should get 80x10x10 */ - vspace = H5Dget_space (vdset); - H5Sget_simple_extent_dims (vspace, vdsdims_out, vdsdims_max_out); - printf ("VDS dimensions second time \n"); - printf (" Current: "); - for (i=0; i