It is used in MPI_Send and MPI_Recv to create a new comm and differentiate from MPI_COMM_WORLD if rep_error_handler is invoked. But MPI_Comm_dup is collective hence if only some processes are calling MPI_Send and MPI_Recv program will stuck.
Find some other alternate to differentiate comms.
It is used in
MPI_SendandMPI_Recvto create a new comm and differentiate fromMPI_COMM_WORLDifrep_error_handleris invoked. ButMPI_Comm_dupis collective hence if only some processes are callingMPI_SendandMPI_Recvprogram will stuck.Find some other alternate to differentiate comms.