# MPI\_Probe

Blocking test for a message.

## Syntax

* \[flag, stat, info] = MPI\_Probe(rank, tag)
* \[flag, stat, info] = MPI\_Probe(rank, tag, comm)

## Input argument

* rank - an integer value: source rank.
* tag - an integer value: message tag.
* comm - a MPI\_Comm object.

## Output argument

* flag - an integer value: 1 if the message is ready to be received, 0 if it is not.
* stat - a struct: source rank, message tag, error, count, cancelled for the accepted message.
* info - an integer value: 0 (MPI\_SUCCESS) other value is an error.

## Description

Blocking test for a message.

## See also

[MPI\_IProbe](https://github.com/Nelson-numerical-software/nelson-gitbook/blob/master/en/mpi/MPI_IProbe.md).

## History

| Version | Description     |
| ------- | --------------- |
| 1.0.0   | initial version |

## Author

Allan CORNET
