mpi.barrier blocks the caller until all members have called it.
mpi.barrier
mpi.barrier(comm = 1)
comm
a communicator number
1 if success. Otherwise 0.
Hao Yu
https://www.open-mpi.org/