mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r491] Program was fixed to use new functions H5Sextent_ndims and H5Sextent_dims.
Tested on Solaris 2.5
This commit is contained in:
parent
13834c0d94
commit
3872a1dd4e
@ -48,8 +48,8 @@ dataset = H5Dopen(file, DATASETNAME);
|
||||
*/
|
||||
|
||||
filespace = H5Dget_space(dataset); /* Get filespace handle first. */
|
||||
rank = H5Sget_ndims(filespace);
|
||||
status_n = H5Sget_dims(filespace, dims, NULL);
|
||||
rank = H5Sextent_ndims(filespace);
|
||||
status_n = H5Sextent_dims(filespace, dims, NULL);
|
||||
printf("dataset rank %d, dimensions %d x %d \n", rank, dims[0], dims[1]);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user