MPI_Group_rank

int MPI_Group_rank(MPI_Group, int *);
Returns the rank of the local task with respect to group.