next up previous contents
Next: MPIALLREDUCE MPI All Reduce Up: MPI Functions Previous: MPICOMMRANK MPI Communicator Rank   Contents

Subsections

MPICOMMSIZE MPI Communicator Size

Usage

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.

Example

Here is a simple example of using mpicommsize:

--> mpiinit
--> mpicommrank
ans = 
  <int32>  - size: [1 1]
             0



Samit K. Basu 2005-03-16