sisl.mpi.Communicator
- class sisl.mpi.Communicator[source]
Bases:
BaseCommunicatorAn mpi4py communicator plus the provenance needed to behave correctly.
A
Communicatoralways wraps real MPI; the serial case is a different implementation ofBaseCommunicator, not this one holding a stand-in.owns_mpiis not bookkeeping: it is the guard that stops sisl finalizing an MPI it did not initialize.Methods
on_rank0()True on the rank that should perform single-writer work (IO, printing).
Attributes
The underlying mpi4py communicator.
Whether sisl initialized MPI, and must therefore finalize it.
Index of this rank within the communicator.
Number of ranks in the communicator.
- on_rank0()
True on the rank that should perform single-writer work (IO, printing).
- Return type:
- property comm
The underlying mpi4py communicator.