[mpich2-commits] r3934 - mpich2/trunk/test/mpi/datatype

jayesh at mcs.anl.gov jayesh at mcs.anl.gov
Wed Mar 4 14:46:33 CST 2009


Author: jayesh
Date: 2009-03-04 14:46:33 -0600 (Wed, 04 Mar 2009)
New Revision: 3934

Modified:
   mpich2/trunk/test/mpi/datatype/simple-pack-external.c
Log:
Using the correct values of indices when creating struct - refer #416 - Review at balaji

Modified: mpich2/trunk/test/mpi/datatype/simple-pack-external.c
===================================================================
--- mpich2/trunk/test/mpi/datatype/simple-pack-external.c	2009-03-04 18:27:10 UTC (rev 3933)
+++ mpich2/trunk/test/mpi/datatype/simple-pack-external.c	2009-03-04 20:46:33 UTC (rev 3934)
@@ -331,7 +331,7 @@
 
     for (i = 0; i < 10; i++) {
 	blocks[i] = 2;
-	indices[i] = 2 * sizeofint;
+	indices[i] = 2 * i * sizeofint;
 	/* This will cause MPICH2 to consider this as a blockindex. We
 	 * need different types here. */
 	types[i] = MPI_INT;



More information about the mpich2-commits mailing list