3.1.4.9. c3po.mpi.MPIMasterDataManager module
Contain the class MPIMasterDataManager.
- class c3po.mpi.MPIMasterDataManager.MPIMasterDataManager(mpiMasterphysicsD, idDataWorker, localDataManager=None)
Bases:
DataManagerMPIMasterDataManageris used by the master process to control a (set of) remotec3po.DataManager.DataManageras a local one.It can, in addition, be in charge of a local one (can be usefull to contribute to a collaborative computation).
MPIMasterDataManagerimplements the methods ofc3po.DataManager.DataManagerby instructing the worker to execute them.- __add__(other)
- __del__()
Destructor.
- __iadd__(other)
- __imul__(scalar)
- __init__(mpiMasterphysicsD, idDataWorker, localDataManager=None)
Build a
MPIMasterDataManagerobject.- Parameters:
mpiMasterphysicsD (MPIMasterPhysicsDriver) – The
MPIMasterPhysicsDriverobject driving thec3po.PhysicsDriver.PhysicsDriverexecuted by the worker responsible of the remotec3po.DataManager.DataManager.idDataWorker – Number identifying the
c3po.DataManager.DataManagerin the worker (seec3po.mpi.MPIWorker.MPIWorker).localDataManager (DataManager) – A
c3po.DataManager.DataManagertheMPIMasterDataManagerobject will use together with the remote ones. It enables the master to contribute to a collaborative computation.
- __isub__(other)
- __mul__(scalar)
- __sub__(other)
- checkCompatibility(other)
INTERNAL
- clone()
- cloneEmpty()
- copy(other)
- dot(other)
- getMPIComm()
- imuladd(scalar, other)
- norm2()
- normMax()