This routines must be called by each slave (master) before it exits. This call cleans all MPI state. Once mpi.finalize has been called, no MPI routine may be called. To be more safe leaving MPI, please use mpi.exit which not only calls mpi.finalize but also detaches the library Rmpi. This will make reload the library Rmpi impossible.
每个从站(主)退出前必须调用这个例程。此呼叫清除所有MPI的状态。一旦mpi.finalize被称为,没有MPI例程被调用。为了更安全地离开MPI,请使用mpi.exit这不仅要求mpi.finalize但也分离的图书馆RMPI。这将重新加载库RMPI是不可能的。