Esempio n. 1
0
def comm_split(comm, color, key=0):
    """
    new_comm = comm_split( comm, color, key )

    color:  all processors that call comm_split with the same color will be put
                into the same communicator.
    key:  determines the order of the processors in the new communicator
    """
    new_comm = core.comm_split( comm, color, key )
    if new_comm == core.MPI_COMM_NULL:
        return None
    return Communicator( new_comm )
Esempio n. 2
0
def comm_split(color, key = 0, comm=core.MPI_COMM_WORLD ):
    """
    """
    return Communicator( core.comm_split(color,key, comm) )