3.1.4.1.4. c3po.mpi.mpiExchangeMethods.MPIValueBcast module

Inheritance diagram of c3po.mpi.mpiExchangeMethods.MPIValueBcast

Contain the class MPIValueBcast.

class c3po.mpi.mpiExchangeMethods.MPIValueBcast.MPIValueBcast(reduceOp=None)

Bases: MPIExchangeMethod

MPIValueBcast can be used to exchange values between two sets of processes.

A reduce is first made on the source processes, then the result is broacasted on the target processes.

__call__(fieldsToGet, fieldsToSet, valuesToGet)

Perform the exchange.

__init__(reduceOp=None)

Build an MPIValueBcast object, to be given to an c3po.mpi.MPIExchanger.MPIExchanger.

Parameters:

reduceOp – A mpi4py reduce operator. The result of the reduce is sent to the target processes. None can be used to skip the reduce step: the value of the first source process is directly sent.

clean()

See ExchangeMethod.clean().

getPatterns()

See ExchangeMethod.getPatterns().

setRanks(ranksToGet, ranksToSet, mpiComm)

See MPIExchangeMethod.setRanks().