summaryrefslogtreecommitdiffstats
path: root/testpar
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>1999-12-20 14:53:44 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>1999-12-20 14:53:44 (GMT)
commitccb5c0ad844df72d0bd6d81431db21988604f483 (patch)
treed749c083f109ccbca7298fbe9ed746837b999ba4 /testpar
parent87ffeb296246b33690fdd78f968138d182322cc1 (diff)
downloadhdf5-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')
-rw-r--r--testpar/t_mdset.c9
-rw-r--r--testpar/testphdf5.c2
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 <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);
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 <sys/types.h>
#include <sys/stat.h>
-void pause_proc()
+void pause_proc(void)
{
int pid;