Another functions are direct calls to MPI library. barrier blocks all processors until everyone call this.
comm.is.null returns -1 if the array of communicators is not
allocated, i.e. init is not called yet. It returns 1
if the communicator is not initialized, i.e. NULL. It
returns 0 if the communicator is initialized.
comm.rank returns the processor's rank for the given comm.
comm.size returns the total processes for the given comm.
comm.dup duplicate a newcomm from comm.
comm.free free a comm.
init initializes a MPI world, and set two global variables
.comm.size and .comm.rank in .GlobalEnv. A random seed
will be preset by default (Sys.getpid() + Sys.time()) to the package
rlecuyer.
finalize frees memory and finishes a MPI world if
mpi.finalize = TRUE.
comm.disconnect frees a comm.
comm.c2f returns an integer for Fortran MPI support.