diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-06-04 18:42:20 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-06-04 18:42:20 (GMT) |
commit | ab28d2c820e88b3cf6d13b5ebac96d7e69203d8d (patch) | |
tree | 235771e2a38aedfb5bee40a61faf0c9bc612f667 /testpar | |
parent | e03437e4da9251c6442f8c96768a01472a0990bd (diff) | |
download | hdf5-ab28d2c820e88b3cf6d13b5ebac96d7e69203d8d.zip hdf5-ab28d2c820e88b3cf6d13b5ebac96d7e69203d8d.tar.gz hdf5-ab28d2c820e88b3cf6d13b5ebac96d7e69203d8d.tar.bz2 |
[svn-r6961] Purpose:
Bug fix
Description:
An earlier checkin changed some of the assumptions about single block
hyperslabs, causing them to fail in odd ways.
Solution:
Fix errors with single block hyperslabs by keying off of count==1 instead
of stride==1.
Platforms tested:
FreeBSD 4.8 (sleipnir) w/parallel
h5committested
Diffstat (limited to 'testpar')
-rw-r--r-- | testpar/t_dset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testpar/t_dset.c b/testpar/t_dset.c index 03fee85..a425793 100644 --- a/testpar/t_dset.c +++ b/testpar/t_dset.c @@ -75,7 +75,7 @@ if (verbose) printf("slab_set BYCOL\n"); /* Similar to BYROW except process 0 gets 0 row */ block[0] = (mpi_rank ? dim0/mpi_size : 0); block[1] = dim1; - stride[0] = block[0]; + stride[0] = (mpi_rank ? block[0] : 1); /* avoid setting stride to 0 */ stride[1] = block[1]; count[0] = 1; count[1] = 1; @@ -88,7 +88,7 @@ if (verbose) printf("slab_set ZROW\n"); block[0] = dim0; block[1] = (mpi_rank ? dim1/mpi_size : 0); stride[0] = block[0]; - stride[1] = block[1]; + stride[1] = (mpi_rank ? block[1] : 1); /* avoid setting stride to 0 */ count[0] = 1; count[1] = 1; start[0] = 0; |