In MPI gather and scatter there is two counts for send and receive. I checked the docs and found out that both should have the same value.
Ex:- In MPI_Gather()
both send_count
and receive_count
should have the size of the send buffer size. https://www.mpich.org/static/docs/v3.1/www3/MPI_Gather.html
Can someone explain what is the purpose of this redundant parameters?