MPI_Comm_rank -- Environment Inquiry
This allows you to identify each process by a unique integer called the rank which runs from 0 to N-1 where there are N processes
If we divide the region 0 to 1 by domain decomposition into N parts, the process with rank r controls
- subregion covering r/N to (r+1)/N
- for C:int MPI_Comm_rank(MPI_Comm comm, int *rank)
- comm is an MPI communicator of type MPI_Comm
- for FORTRAN: call MPI_COMM_RANK (comm, rank, mpierr)