There is such a code. I can\'t understand how a new communicator is created using colors and keys.
MPI_Comm_rank(MPI_COMM_WORLD, &rank); if (rank < 3)