Scripted HTML version of Foils prepared 11 November 1996
Foil 9 Hello World:C Example of Broadcast
From CPS615-Completion of MPI foilset and Application to Jacobi Iteration in 2D Delivered Lectures of CPS615 Basic Simulation Track for Computational Science -- 7 November 96. byGeoffrey C. Fox * Secs 192.9
#include "mpi.h"
main( int argc, char **argv )
{
char message[20];
int rank;
MPI_Init (&argc, &argv);
MPI_Comm_rank(MPI_COMM_WORLD, &rank); # Who is this processor