summaryrefslogtreecommitdiffstats
path: root/test/istore.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-01-20 19:10:08 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-01-20 19:10:08 (GMT)
commita4e47e25eb1fe1fc27846b20a7965f99a9bed220 (patch)
tree4ea1e5446ed5b6a5b1704725cb5aa5728234a5a7 /test/istore.c
parentc2c94c31878dc42926661c9cb7e71be620196fc1 (diff)
downloadhdf5-a4e47e25eb1fe1fc27846b20a7965f99a9bed220.zip
hdf5-a4e47e25eb1fe1fc27846b20a7965f99a9bed220.tar.gz
hdf5-a4e47e25eb1fe1fc27846b20a7965f99a9bed220.tar.bz2
[svn-r158] Changes since 19980116
---------------------- ./src/H5AC.c ./src/H5ACprivate.h ./src/H5B.c ./src/H5D.c ./src/H5Farray.c ./src/H5Fprivate.h ./src/H5V.c ./src/H5Vprivate.h Fixed indent oopses. ./src/H5D.c ./src/H5Fprivate.h ./src/H5Farray.c ./test/istore.c We can now perform partial I/O on contiguous storage transferring between a hyperslab of file storage and a hyperslab of memory. However, partial I/O hasn't been added to the I/O pipeline yet in H5D.c
Diffstat (limited to 'test/istore.c')
-rw-r--r--test/istore.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/istore.c b/test/istore.c
index 6115a5f..2bd092c 100644
--- a/test/istore.c
+++ b/test/istore.c
@@ -37,8 +37,9 @@
#define AT() printf (" at %s:%d in %s()...\n", \
__FILE__, __LINE__, __FUNCTION__);
-size_t align_g[3] =
-{50, 50, 50};
+size_t align_g[3] = {50, 50, 50};
+size_t zero[H5O_LAYOUT_NDIMS];
+
/*-------------------------------------------------------------------------
* Function: print_array
@@ -97,7 +98,7 @@ print_array(uint8 *array, size_t nx, size_t ny, size_t nz)
*-------------------------------------------------------------------------
*/
static int
-new_object(H5F_t *f, const char *name, size_t ndims, H5G_entry_t *ent /*out */ )
+new_object(H5F_t *f, const char *name, size_t ndims, H5G_entry_t *ent/*out*/)
{
H5O_layout_t layout;
intn i;
@@ -313,7 +314,7 @@ test_extend(H5F_t *f, const char *prefix,
memset(buf, 128 + ctr, nelmts);
/* Write to disk */
- if (H5F_arr_write(f, &layout, offset, size, buf) < 0) {
+ if (H5F_arr_write(f, &layout, size, offset, zero, size, buf) < 0) {
puts("*FAILED*");
if (!isatty(1)) {
AT();
@@ -323,7 +324,7 @@ test_extend(H5F_t *f, const char *prefix,
}
/* Read from disk */
memset(check, 0xff, nelmts);
- if (H5F_arr_read(f, &layout, offset, size, check) < 0) {
+ if (H5F_arr_read(f, &layout, size, offset, zero, size, check) < 0) {
puts("*FAILED*");
if (!isatty(1)) {
AT();
@@ -356,7 +357,7 @@ test_extend(H5F_t *f, const char *prefix,
/* Now read the entire array back out and check it */
memset(buf, 0xff, nx * ny * nz);
- if (H5F_arr_read(f, &layout, H5V_ZERO, whole_size, buf) < 0) {
+ if (H5F_arr_read(f, &layout, whole_size, zero, zero, whole_size, buf)<0) {
puts("*FAILED*");
if (!isatty(1)) {
AT();
@@ -475,7 +476,7 @@ test_sparse(H5F_t *f, const char *prefix, size_t nblocks,
memset(buf, 128 + ctr, nx * ny * nz);
/* write to disk */
- if (H5F_arr_write(f, &layout, offset, size, buf) < 0) {
+ if (H5F_arr_write(f, &layout, size, offset, zero, size, buf) < 0) {
puts("*FAILED*");
if (!isatty(1)) {
AT();