Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/p/y/pythia-0.8.1.11/mpi/Communicator.py   pythia(Download)
    def __init__(self, handle):
 
        self._handle = handle
 
        from mpi import MPI_Comm_rank, MPI_Comm_size
        self.rank = MPI_Comm_rank(self._handle)
        self.size = MPI_Comm_size(self._handle)