- Removed some parallel tests from serial code

- fix some warnings
This commit is contained in:
2010-09-06 15:45:47 +00:00
parent 031cd58999
commit 441915f443
5 changed files with 11 additions and 10 deletions
+4 -4
View File
@@ -83,7 +83,7 @@ test_read_data64(h5_file_t *file, int step)
TEST("Verifying dataset info");
#if PARALLEL_IO
#if defined(PARALLEL_IO)
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &nprocs);
#else
@@ -133,7 +133,7 @@ test_read_data64(h5_file_t *file, int step)
}
}
#if PARALLEL_IO
#if defined(PARALLEL_IO)
TEST("Setting throttle");
status = H5SetThrottle(file, 3);
RETURN(status, H5_SUCCESS, "H5SetThrottle");
@@ -211,13 +211,13 @@ test_read_data32(h5_file_t *file, int step)
RETURN(status, H5_SUCCESS, "H5SetStep");
test_read_field_attribs(file, "e", t);
#if defined(PARALLEL_IO)
status = H5Block3dSetGrid(file, grid[0], grid[1], grid[2]);
RETURN(status, H5_SUCCESS, "H5Block3dSetGrid");
status = H5Block3dSetDims(file, NBLOCKX, NBLOCKY, NBLOCKZ);
RETURN(status, H5_SUCCESS, "H5Block3dSetDims");
#endif
status = H5Block3dReadScalarFieldFloat32(file, "e", e);
RETURN(status, H5_SUCCESS, "H5Block3dReadScalarFieldFloat32");
+3 -2
View File
@@ -66,7 +66,7 @@ test_write_data64(h5_file_t *file, int step)
ez=(double*)malloc(nelems*sizeof(double));
id=(h5_int64_t*)malloc(nelems*sizeof(h5_int64_t));
#if PARALLEL_IO
#if defined(PARALLEL_IO)
TEST("Setting throttle");
status = H5SetThrottle(file, 2);
RETURN(status, H5_SUCCESS, "H5SetThrottle");
@@ -157,12 +157,13 @@ test_write_data32(h5_file_t *file, int step)
if (val == 0) test_write_field_attribs(file, "e", t);
#if defined(PARALLEL_IO)
status = H5Block3dSetGrid(file, grid[0], grid[1], grid[2]);
RETURN(status, H5_SUCCESS, "H5Block3dSetGrid");
status = H5Block3dSetDims(file, NBLOCKX, NBLOCKY, NBLOCKZ);
RETURN(status, H5_SUCCESS, "H5Block3dSetDims");
#endif
status = H5Block3dSetHalo(file, 0, 1, 2);
RETURN(status, H5_SUCCESS, "H5Block3dSetHalo");
+2 -2
View File
@@ -113,7 +113,7 @@ test_read_data64(h5_file_t *file, int nparticles, int step)
TEST("Verifying dataset info");
#if PARALLEL_IO
#if defined(PARALLEL_IO)
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &nprocs);
#else
@@ -145,7 +145,7 @@ test_read_data64(h5_file_t *file, int nparticles, int step)
else IVALUE(type, H5_FLOAT64_T, "dataset type");
}
#if PARALLEL_IO
#if defined(PARALLEL_IO)
TEST("Setting throttle");
status = H5SetThrottle(file, 3);
RETURN(status, H5_SUCCESS, "H5SetThrottle");
+1 -1
View File
@@ -218,7 +218,7 @@ test_write_data32(h5_file_t *file, int nparticles, int step)
status = H5PartSetNumParticles(file, nparticles);
RETURN(status, H5_SUCCESS, "H5PartSetNumParticles");
#if PARALLEL_IO
#if defined(PARALLEL_IO)
/* will generate a warning since we are in MPI-IO Collective mode */
TEST("Setting throttle");
status = H5SetThrottle(file, 2);
+1 -1
View File
@@ -530,7 +530,7 @@ TestPrintf(const char *format, ...)
va_list arglist;
int ret_value;
#if PARALLEL_IO
#if defined(PARALLEL_IO)
int nproc;
MPI_Comm_rank(MPI_COMM_WORLD, &nproc);
if ( nproc == 0 || VERBOSE_HI ) {