This function returns the size of the group using the given communicator. The general syntax for its use is
y = mpicommsize(comm)
where comm
is the communicator to use. If no communicator
is provided, then MPI_COMM_WORLD
is assumed.
Here is a simple example of using mpicommsize
:
--> mpiinit --> mpicommrank ans = <int32> - size: [1 1] 0