Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > be0974b2b8ed02af93714b256a53dd30 > files > 177

mpi4py-docs-1.2.2-6.fc15.noarch.rpm

from mpi4py import MPI
import helloworld as hw

null = MPI.COMM_NULL
hw.sayhello(null)

comm = MPI.COMM_WORLD
hw.sayhello(comm)

try:
    hw.sayhello(None)
except:
    pass
else:
    assert 0, "exception not raised"

try:
    hw.sayhello(list())
except:
    pass
else:
    assert 0, "exception not raised"