summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;