3.1.4.1.4. c3po.mpi.mpiExchangeMethods.MPIValueBcast module
Contain the class MPIValueBcast.
- class c3po.mpi.mpiExchangeMethods.MPIValueBcast.MPIValueBcast(reduceOp=None)
Bases:
MPIExchangeMethodMPIValueBcastcan 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
MPIValueBcastobject, to be given to anc3po.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()
- getPatterns()
- setRanks(ranksToGet, ranksToSet, mpiComm)