LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Angel Tsankov (fn42551_at_[hidden])
Date: 2005-02-04 16:08:29


> Further, if an error is reached in MPI_Comm_rank, the code needs to set
> the value of the variable to a negative number, since all other values
> would possibly reference a valid rank.

If an error is reached in MPI_Comm_rank or MPI_Comm_size, the program should
be aborted (by default). So, what is the point in setting the variable (rank
or size) to a negative value since neither of those functions will return?