mpi.comm.free deallocates a communicator so it points to MPI\_COMM\_NULL.
mpi.comm.free释放的传播者,因此它指向MPI \ _COMM的\ _NULL。
用法----------Usage----------
mpi.comm.free(comm=1)
参数----------Arguments----------
参数:comm
a communicator number
一个通信号
Details
详细信息----------Details----------
When members associated with a communicator finish jobs or exit, they have to call mpi.comm.free to release resource so mpi.comm.size will return 0. If the comm was created from an intercommunicator by mpi.intercomm.merge, use mpi.comm.disconnect instead.
当会员的传播者完成作业或退出,他们必须调用“mpi.comm.free释放资源,所以mpi.comm.size将返回0。如果通讯从intercommunicator创建mpi.intercomm.merge,mpi.comm.disconnect,而不是使用。