[mpich2-dev] Update resized.c code to match the comments.

Bob Cernohous bobc at us.ibm.com
Thu Apr 9 16:10:06 CDT 2009


Hi,

The io/resized.c test is failing in 1.1b1.   It looks like the code 
doesn't match the comments.  It says use an lb at 0, but sets lb to 4.  If 
I change the code, it runs fine.  Comments?

BobC at us.ibm.com
IBM Rochester, Building 030-2(C335), Department 61L
3605 Hwy 52 North, Rochester,  MN 55901-7829

----- Forwarded by Bob Cernohous/Rochester/IBM on 04/09/2009 04:03 PM 
-----

> 
> Signed-off-by: Bob Cernohous <bobc at us.ibm.com>
> ---
>  mpich2/test/mpi/io/resized.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/mpich2/test/mpi/io/resized.c b/mpich2/test/mpi/io/resized.c
> index 1abab1a..4352c74 100644
> --- a/mpich2/test/mpi/io/resized.c
> +++ b/mpich2/test/mpi/io/resized.c
> @@ -53,7 +53,7 @@ int main(int argc, char **argv)
>      MPI_File_delete(filename, MPI_INFO_NULL);
> 
>      /* create a resized type comprising an integer with an lb at 0 
> and extent = 3*sizeof(int) */
> -    lb = sizeof(int);
> +    lb = 0;
>      extent = 3*sizeof(int);
>      MPI_Type_create_resized(MPI_INT, lb, extent, &newtype); 
> 
> -- 
> 1.5.3.7
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mcs.anl.gov/mailman/private/mpich2-dev/attachments/20090409/892b482c/attachment.htm>


More information about the mpich2-dev mailing list