summaryrefslogtreecommitdiffstats
path: root/testpar/t_coll_chunk.c
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2006-03-09 14:52:09 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2006-03-09 14:52:09 (GMT)
commit0f0a5eb91807e3541aacba55905cf72ac19f0aad (patch)
tree56dd9b8a897a3959237480ab046809b830c5ad16 /testpar/t_coll_chunk.c
parent3ba9425ab266840c7bc8812a68d29e21abffa4f5 (diff)
downloadhdf5-0f0a5eb91807e3541aacba55905cf72ac19f0aad.zip
hdf5-0f0a5eb91807e3541aacba55905cf72ac19f0aad.tar.gz
hdf5-0f0a5eb91807e3541aacba55905cf72ac19f0aad.tar.bz2
[svn-r12044] Purpose:
Add new tests Description: Collective IO doesn't work for some platforms/mpio packages when more than one process has no contributions to IO. Solution: 1. Add a collective IO test to verify the correctness of the library when more than one process has no contributions to IO. 2. Add the similar MPI-IO test in t_mpi to help us maintain in more platforms. Platforms tested: heping, mir, copper Misc. update:
Diffstat (limited to 'testpar/t_coll_chunk.c')
-rw-r--r--testpar/t_coll_chunk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testpar/t_coll_chunk.c b/testpar/t_coll_chunk.c
index f403b53..fbc3505 100644
--- a/testpar/t_coll_chunk.c
+++ b/testpar/t_coll_chunk.c
@@ -470,7 +470,7 @@ ccslab_set(int mpi_rank,
block[1] = 1;
stride[0] = 1;
stride[1] = 1;
- count[0] = ((mpi_rank == (mpi_size-1))?0:SPACE_DIM1/mpi_size);
+ count[0] = ((mpi_rank >= MAX(1,(mpi_size-2)))?0:SPACE_DIM1/mpi_size);
count[1] = SPACE_DIM2;
start[0] = mpi_rank*count[0];
start[1] = 0;