src/missing/mpi.c
int MPI_Allgather(void * sendbuf, int sendcount, MPI_Datatype sendtype,
		  void * recvbuf, int recvcount, MPI_Datatype recvtype,
		  MPI_Comm comm) {
  int rc;

  err_err_rcif(sendbuf == NULL, MPI_ERR_BUFFER);
  err_err_rcif(recvbuf == NULL, MPI_ERR_BUFFER);
  err_err_rcif(sendcount != recvcount, MPI_ERR_COUNT);
  err_err_rcif(sendtype != recvtype, MPI_ERR_TYPE);

  mpi_copy(sendbuf, recvbuf, sendcount, sendtype);

  return MPI_SUCCESS;

 err:
  mpi_errhandler_(&comm, &rc);

  return rc;
}
/****************************************************************************
 *
 *  \brief Replacement MPI_Allgather works for basic dataypes
 *
 *  This is just a copy of the source to the result buffer.
 *
 *  \param  sendbuf      pointer to data to be sent
 *  \param  sendcount    number of data items to be sent
 *  \param  sendtype     MPI_Datatype of send data
 *  \param  recvbuf      pointer to the data result buffer
 *  \param  recvcount    number of data items in result
 *  \param  recvtype     MPI_Datatype of the result
 *  \param  comm         expected to be MPI_COMM_WORLD
 *
 *  \retval MPI_SUCCESS  a success
 *  \retval MPI_ERR_...  a failure
 *
 ****************************************************************************/
\brief Replacement MPI_Allgather works for basic dataypes
This is just a copy of the source to the result buffer.




\ brief Replacement MPI_Allgather works for basic dataypes This is just a copy of the source to the result buffer .
int MPI_Allgather(void * sendbuf, int sendcount, MPI_Datatype sendtype,
		  void * recvbuf, int recvcount, MPI_Datatype recvtype,
		  MPI_Comm comm) {
  int rc;
  err_err_rcif(sendbuf == NULL, MPI_ERR_BUFFER);
  err_err_rcif(recvbuf == NULL, MPI_ERR_BUFFER);
  err_err_rcif(sendcount != recvcount, MPI_ERR_COUNT);
  err_err_rcif(sendtype != recvtype, MPI_ERR_TYPE);
  mpi_copy(sendbuf, recvbuf, sendcount, sendtype);
  return MPI_SUCCESS;
 err:
  mpi_errhandler_(&comm, &rc);
  return rc;
}
int MPI_Allgather ( void * sendbuf , int sendcount , MPI_Datatype sendtype , void * recvbuf , int recvcount , MPI_Datatype recvtype , MPI_Comm comm ) { int rc ; err_err_rcif ( sendbuf == NULL , MPI_ERR_BUFFER ) ; err_err_rcif ( recvbuf == NULL , MPI_ERR_BUFFER ) ; err_err_rcif ( sendcount != recvcount , MPI_ERR_COUNT ) ; err_err_rcif ( sendtype != recvtype , MPI_ERR_TYPE ) ; mpi_copy ( sendbuf , recvbuf , sendcount , sendtype ) ; return MPI_SUCCESS ; err : mpi_errhandler_ ( & comm , & rc ) ; return rc ; }
\brief Replacement MPI_Allgather works for basic dataypes
  This is just a copy of the source to the result buffer.
\ brief Replacement MPI_Allgather works for basic dataypes This is just a copy of the source to the result buffer .