Sending in a ring (broadcast by ring)

Compiling and Running on the Calhoun using Open MPI

 To compile:
   module load intel ompi/intel
   mpif90 -O3 code.f
   mpicc -O3 code.c
   mpicxx -O3 code.cpp

To run:

  Interactively:   mpirun -np 4 -hostfile hfile ./main.x