From ccb5c0ad844df72d0bd6d81431db21988604f483 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Mon, 20 Dec 1999 09:53:44 -0500 Subject: [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. --- testpar/t_mdset.c | 9 ++++----- testpar/testphdf5.c | 2 +- 2 files changed, 5 insertions(+), 6 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 #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); diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c index 02c66ee..18b4ad6 100644 --- a/testpar/testphdf5.c +++ b/testpar/testphdf5.c @@ -46,7 +46,7 @@ char *filenames[]={ "ParaEg1.h5f", #include #include -void pause_proc() +void pause_proc(void) { int pid; -- cgit v0.12