/*
** Solution for twosync() problem
** Rolf Riesen, 2008
*/
#include <stdio.h>
#include <mpi.h>



void
twosync(int other)
{

MPI_Request req;


    MPI_Isend(NULL, 0, MPI_INT, other, 0, MPI_COMM_WORLD, &req);
    MPI_Recv(NULL, 0, MPI_INT, other, 0, MPI_COMM_WORLD, MPI_STATUS_IGNORE);
    MPI_Wait(&req, MPI_STATUS_IGNORE);

}  /* end of twosync() */
