References:

Concepts:

Messaging concepts:

Initial functions:

The majority of MPI functions returns an integer that indicates success or error while executing it, usually they will return MPI_SUCCESS (0), but here are all possible codes: https://learn.microsoft.com/en-us/message-passing-interface/mpi-error.