Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 6aebace0cb967559ef14fc69ac903937 > files > 139

python-mpi4py-doc-1.3.1-4.mga4.noarch.rpm

from mpi4py import MPI

# Type = { (double, 0), (char, 8) }

blens = (1, 1)
disps = (0, MPI.DOUBLE.size)
types = (MPI.DOUBLE, MPI.CHAR)

dtype = MPI.Datatype.Create_struct(blens, disps, types)

if 'ex-3.02' in __file__:
    dtype.Free()