helloworld.c

Go to the documentation of this file.
00001 #include <stdio.h>
00002 #include "mpi.h"
00003 
00004 int main( argc, argv )
00005 int  argc;
00006 char **argv;
00007 {
00008     int rank, size;
00009     MPI_Init( &argc, &argv );
00010     MPI_Comm_size( MPI_COMM_WORLD, &size );
00011     MPI_Comm_rank( MPI_COMM_WORLD, &rank );
00012     printf( "Hello world from process %d of %d\n", rank, size );
00013     MPI_Finalize();
00014     return 0;
00015 }

Generated on Sun Dec 4 21:12:40 2005 for fmm3d_mpi by  doxygen 1.4.5