[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mpi-21] Date: Wed, 2 Jan 2008 14:11:01 -0600



In the MPI-1 document, on page 16 (first page of chapter 3), the example uses strlen(message) for the number of characters in the string message to send, and then uses printf to print that message when received.  This fails to send the trailing null, so in the MPI_Send call, the length should be strlen(message) + 1 on line 33.

Bill

William Gropp
Paul and Cynthia Saylor Professor of Computer Science
University of Illinois Urbana-Champaign