/* This is an example program showing a simple MPI program.  Run
 * "mpicc -lm -o mpihello mpihello.c" on a machine of the correct target 
 * architecture to compile the program.  Remember, most of the grid nodes are
 * running 64 bits, so make sure you compile on a 64 bit workstation.
*/

#include <stdio.h>
#include <mpi.h>

main(int argc, char **argv)
{
   int node;

   int i, j;
   float f;
   
   MPI_Init(&argc,&argv);
   MPI_Comm_rank(MPI_COMM_WORLD, &node);
     
   printf("Hello World from Node %d.\n", node);
   for (j=0; j<=100000; j++)
      for(i=0; i<=100000; i++)
          f=i*2.718281828*i+i+i*3.141592654;

   MPI_Finalize();
}
