From 311cdad1c85cceb0f62880b3724a000c19e51b55 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 27 Jun 2013 16:24:02 +0000 Subject: [PATCH] bugfix --- test/h5u_read.c | 15 ++++++++------- test/h5u_test.c | 4 ++-- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/test/h5u_read.c b/test/h5u_read.c index 2e89335..de97dbc 100644 --- a/test/h5u_read.c +++ b/test/h5u_read.c @@ -103,13 +103,6 @@ test_read_data64(h5_file_t file, int nparticles, int step) double *px,*py,*pz; h5_int64_t *id; - x=(double*)malloc(nparticles*sizeof(double)); - y=(double*)malloc(nparticles*sizeof(double)); - z=(double*)malloc(nparticles*sizeof(double)); - px=(double*)malloc(nparticles*sizeof(double)); - py=(double*)malloc(nparticles*sizeof(double)); - pz=(double*)malloc(nparticles*sizeof(double)); - id=(h5_int64_t*)malloc(nparticles*sizeof(h5_int64_t)); TEST("Verifying dataset info"); @@ -121,6 +114,14 @@ test_read_data64(h5_file_t file, int nparticles, int step) rank = 2; #endif + x=(double*)malloc(nprocs*nparticles*sizeof(double)); + y=(double*)malloc(nprocs*nparticles*sizeof(double)); + z=(double*)malloc(nprocs*nparticles*sizeof(double)); + px=(double*)malloc(nprocs*nparticles*sizeof(double)); + py=(double*)malloc(nprocs*nparticles*sizeof(double)); + pz=(double*)malloc(nprocs*nparticles*sizeof(double)); + id=(h5_int64_t*)malloc(nprocs*nparticles*sizeof(h5_int64_t)); + val = H5PartGetNumParticles(file); IVALUE(val, nprocs*nparticles, "particle count"); diff --git a/test/h5u_test.c b/test/h5u_test.c index c5047a9..1d27b17 100644 --- a/test/h5u_test.c +++ b/test/h5u_test.c @@ -49,8 +49,8 @@ int main(int argc, char **argv) /* Parse command line arguments */ TestParseCmdLine(argc, argv); - //H5SetVerbosityLevel(GetTestVerbosity()); - H5SetVerbosityLevel(1); + H5SetVerbosityLevel(GetTestVerbosity()); + //H5SetVerbosityLevel(-1); /* Perform requested testing */ PerformTests();