diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2009-03-31 17:32:54 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2009-03-31 17:32:54 (GMT) |
commit | a29e811343bce0275dc44671b767a2eebbf86593 (patch) | |
tree | 11eec69c03676e21a4cbecb7dda280ac76fd1e73 /tools/h5dump | |
parent | 505b31ee08bfd3efc62df84e00602a9fd6c46a4f (diff) | |
download | hdf5-a29e811343bce0275dc44671b767a2eebbf86593.zip hdf5-a29e811343bce0275dc44671b767a2eebbf86593.tar.gz hdf5-a29e811343bce0275dc44671b767a2eebbf86593.tar.bz2 |
[svn-r16634] Description:
Bring r16618:16633 back from trunk to revise_chunks branch.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
Diffstat (limited to 'tools/h5dump')
-rw-r--r-- | tools/h5dump/h5dumpgentest.c | 16 | ||||
-rw-r--r-- | tools/h5dump/testh5dump.sh.in | 2 |
2 files changed, 7 insertions, 11 deletions
diff --git a/tools/h5dump/h5dumpgentest.c b/tools/h5dump/h5dumpgentest.c index 4d811ee..b8a3753 100644 --- a/tools/h5dump/h5dumpgentest.c +++ b/tools/h5dump/h5dumpgentest.c @@ -2815,35 +2815,34 @@ static void gent_array7(void) static void gent_array8(void) { - double *buf; /* information to write */ - hid_t fid; /* HDF5 File IDs */ + int *buf; /* information to write */ + hid_t fid; /* HDF5 File ID */ hid_t did; /* dataset ID */ hid_t sid; /* dataspace ID */ hid_t tid; /* datatype ID */ size_t size; hsize_t sdims[] = {1}; - hsize_t tdims[] = {H5TOOLS_BUFSIZE / sizeof(double) + 1}; + hsize_t tdims[] = {H5TOOLS_BUFSIZE / sizeof(int) + 1}; int i; herr_t ret; - size = ( H5TOOLS_BUFSIZE / sizeof(double) + 1 ) * sizeof(double); + size = ( H5TOOLS_BUFSIZE / sizeof(int) + 1 ) * sizeof(int); buf = malloc( size ); - for( i = 0; i < H5TOOLS_BUFSIZE / sizeof(double) + 1; i++) + for( i = 0; i < H5TOOLS_BUFSIZE / sizeof(int) + 1; i++) buf[i] = i; /* create file */ fid = H5Fcreate(FILE64, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); /* create a type larger than H5TOOLS_BUFSIZE */ - tid = H5Tarray_create2(H5T_NATIVE_DOUBLE, 1, tdims); + tid = H5Tarray_create2(H5T_NATIVE_INT, 1, tdims); size = H5Tget_size(tid); sid = H5Screate_simple(1, sdims, NULL); did = H5Dcreate2(fid, "dset", tid, sid, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); -#if defined(WRITE_ARRAY) ret = H5Dwrite(did, tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, buf); assert(ret >= 0); -#endif + /* close */ ret = H5Dclose(did); @@ -6376,7 +6375,6 @@ int main(void) gent_attr_creation_order(); gent_fpformat(); gent_extlinks(); - gent_array8(); return 0; diff --git a/tools/h5dump/testh5dump.sh.in b/tools/h5dump/testh5dump.sh.in index c85d34d..748b165 100644 --- a/tools/h5dump/testh5dump.sh.in +++ b/tools/h5dump/testh5dump.sh.in @@ -511,8 +511,6 @@ TOOLTEST tfpformat.ddl -m %.7f tfpformat.h5 TOOLTEST textlinksrc.ddl textlinksrc.h5 TOOLTEST textlinkfar.ddl textlinkfar.h5 -# test for datum size > H5TOOLS_BUFSIZE -TOOLTEST tarray8.ddl -d dset tarray8.h5 |