Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > by-pkgid > 2fe96174012fea2d88f752857a5bea1d > files > 74

python-mpi4py-0.6.0-4mdv2008.1.i586.rpm

#! /usr/bin/env python

from mpi4py import MPI

parent = MPI.Comm.Get_parent()
assert parent != MPI.COMM_NULL

if parent.rank == 0:
    ack = parent.Recv(None, 0)
    assert ack == 'ack'

parent.Disconnect()
assert parent == MPI.COMM_NULL