diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2005-05-09 16:28:47 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2005-05-09 16:28:47 (GMT) |
commit | 0f002845f33090167dcb9fd06daf54813e13f419 (patch) | |
tree | 652ba8022b49b1d4c094665b58b1ad09d8cd201c /tools/h5dump | |
parent | 1b313aa2f65a5f35de6bf820f08de5045fd3c232 (diff) | |
download | hdf5-0f002845f33090167dcb9fd06daf54813e13f419.zip hdf5-0f002845f33090167dcb9fd06daf54813e13f419.tar.gz hdf5-0f002845f33090167dcb9fd06daf54813e13f419.tar.bz2 |
[svn-r10739] Purpose:
new test
Description:
adds a new test for a case when there is more than 1 stripmine read
Solution:
Platforms tested:
Linux
Misc. update:
Diffstat (limited to 'tools/h5dump')
-rw-r--r-- | tools/h5dump/h5dumpgentest.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/h5dump/h5dumpgentest.c b/tools/h5dump/h5dumpgentest.c index 56917b7..cdb2f1b 100644 --- a/tools/h5dump/h5dumpgentest.c +++ b/tools/h5dump/h5dumpgentest.c @@ -5244,10 +5244,12 @@ static void gent_aindices(void) hsize_t dims2[2] = {2,100}; hsize_t dims3[3] = {2,2,100}; hsize_t dims4[4] = {2,3,4,5}; + hsize_t dims5[2] = {32,4097}; /* big enough data size to force a second stripmine read */ int buf1[100]; int buf2[2][100]; int buf3[2][2][100]; int buf4[2][3][4][5]; + double *buf5; int i, j, k, l, n, ret; for (i=n=0; i<100; i++){ @@ -5275,6 +5277,10 @@ static void gent_aindices(void) } } } + + buf5 = malloc(32 * 4097 * sizeof(double) ); + for (i = 0; i < 32 * 4097; i++) + buf5[i] = 1; /* create a file */ fid = H5Fcreate(FILE50, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); @@ -5288,6 +5294,7 @@ static void gent_aindices(void) write_dset(fid,2,dims2,"2d",H5T_NATIVE_INT,buf2); write_dset(fid,3,dims3,"3d",H5T_NATIVE_INT,buf3); write_dset(fid,4,dims4,"4d",H5T_NATIVE_INT,buf4); + write_dset(fid,2,dims5,"stripmine",H5T_NATIVE_DOUBLE,buf5); /*------------------------------------------------------------------------- * test with group indentation @@ -5312,6 +5319,8 @@ static void gent_aindices(void) */ ret=H5Fclose(fid); assert(ret>=0); + + free(buf5); } /*------------------------------------------------------------------------- |