Trivial Python code checking the intersection of the empty group with itself.

$ cat tmp.py
from mpi4py import MPI
empty = MPI.Group.Intersection(MPI.GROUP_EMPTY, MPI.GROUP_EMPTY)
assert MPI.Group.Compare(empty, MPI.GROUP_EMPTY) in [MPI.IDENT, MPI.CONGRUENT]

$ mpiexec -n 1 python tmp.py
malloc debug: Request for 0 bytes (group/group.c, 456)

-- 
Lisandro Dalcin
============
Research Scientist
Computer, Electrical and Mathematical Sciences & Engineering (CEMSE)
Extreme Computing Research Center (ECRC)
King Abdullah University of Science and Technology (KAUST)
http://ecrc.kaust.edu.sa/

4700 King Abdullah University of Science and Technology
al-Khawarizmi Bldg (Bldg 1), Office # 0109
Thuwal 23955-6900, Kingdom of Saudi Arabia
http://www.kaust.edu.sa

Office Phone: +966 12 808-0459

Reply via email to