# 需要导入模块: from mpi4py import MPI [as 别名]# 或者: from mpi4py.MPI importANY_SOURCE[as 别名]def_read(self):result = super(MPIWrapper, self)._read()ifresultisnotNone:returnresult status = MPI.Status() msg = comm.recv(source=MPI.ANY_SOURCE, tag=MPI.ANY_TAG, status=status) t...
As fr now, the check would be at run time unless we turn it into a tag (struct any_source_t{} any_source;) so that the compiler can force a second tag. The use would still be able to use then value MPI_ANY_SOURCE directly but then we could warn. Member aminiussi commented Aug...