3.1.4.18. c3po.mpi.MPIWorker module

Inheritance diagram of c3po.mpi.MPIWorker

Contain the class MPIWorker.

class c3po.mpi.MPIWorker.MPIWorker(physicsDrivers, exchangers, dataManagers, masterProcess, isCollective=False)

Bases: object

MPIWorker defines the behavior of workers in a master/workers MPI paradimg.

__init__(physicsDrivers, exchangers, dataManagers, masterProcess, isCollective=False)

Build a MPIWorker object.

Parameters:
answer(data, collectiveOperator=mpi4py.MPI.MIN)

INTERNAL

checkDataID(idList)

INTERNAL

getIdNewData()

INTERNAL

listen()

Make the worker waits for instructions from the master.

The worker gets out of this waiting mode when the master call the terminate method of the related c3po.mpi.MPIMasterPhysicsDriver.MPIMasterPhysicsDriver.