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

int main(int argc, char *argv[]) {
		int rank, size;
		char name[80];	//character array to hold the name of each processor
		int len;	//length of the name of the processor
		MPI_Init(&argc, &argv);
		MPI_Comm_size(MPI_COMM_WORLD, &size);
		MPI_Comm_rank(MPI_COMM_WORLD, &rank);
		MPI_Get_processor_name(name, &len);
		printf("Hi there from process %d of %d.  Name=%s\n", rank, size, name);
		MPI_Finalize();
		return 0;
}

