def __len__(self): if self == _mpi.COMM_NULL: return 0 elif _mpi.comm_test_inter(self): return _mpi.comm_remote_size(self) else: return _mpi.comm_size(self)
def Get_size(self): return _mpi.comm_size(self)