diff options
author | Albert Cheng <acheng@hdfgroup.org> | 1999-12-20 14:53:44 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 1999-12-20 14:53:44 (GMT) |
commit | ccb5c0ad844df72d0bd6d81431db21988604f483 (patch) | |
tree | d749c083f109ccbca7298fbe9ed746837b999ba4 /testpar/t_mdset.c | |
parent | 87ffeb296246b33690fdd78f968138d182322cc1 (diff) | |
download | hdf5-ccb5c0ad844df72d0bd6d81431db21988604f483.zip hdf5-ccb5c0ad844df72d0bd6d81431db21988604f483.tar.gz hdf5-ccb5c0ad844df72d0bd6d81431db21988604f483.tar.bz2 |
[svn-r1914] t_mdset.c:
Increase the test size to 32. Put in a check to make sure number of
processes are not bigger than SIZE.
testphdf5.c:
Fixed a mistake in the prototype of pause_proc to reflect no arguments.
Diffstat (limited to 'testpar/t_mdset.c')
-rw-r--r-- | testpar/t_mdset.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/testpar/t_mdset.c b/testpar/t_mdset.c index 77354d6..cc23e1c 100644 --- a/testpar/t_mdset.c +++ b/testpar/t_mdset.c @@ -1,7 +1,7 @@ #include <testphdf5.h> #define DIM 2 -#define SIZE 10 +#define SIZE 32 #define NUMITEMS 500 /* 988 */ void multiple_dset_write(char *filename) @@ -15,6 +15,8 @@ void multiple_dset_write(char *filename) MPI_Comm_rank (MPI_COMM_WORLD, &rank); MPI_Comm_size (MPI_COMM_WORLD, &nprocs); + VRFY((nprocs <= SIZE), "nprocs <= SIZE"); + chunk_origin [0] = 0; chunk_origin [1] = rank * (SIZE / nprocs); chunk_dims [0] = SIZE; @@ -42,10 +44,7 @@ void multiple_dset_write(char *filename) sprintf (dname, "dataset %d", i); dataset = H5Dcreate (iof, dname, H5T_NATIVE_FLOAT, filespace, H5P_DEFAULT); - if (dataset < 0) { - fprintf (stderr, "proc %d: failed to create dataset %d\n", rank, i); - exit (-1); - } + VRFY((dataset > 0), "dataset create succeeded"); H5Dwrite (dataset, H5T_NATIVE_DOUBLE, memspace, filespace, H5P_DEFAULT, outme); |