From the boost.MPI documentation:
MPI_ANY_SOURCE
becomesany_source
MPI_ANY_TAG
becomesany_tag
The communicator::recv()
method returns an instance of the status class that provides all the information that you need:
status.MPI_SOURCE
is returned bystatus::source()
status.MPI_TAG
is returned bystatus::tag()
It also provides two cast operators to covert its content to MPI_Status
structure.