<div>Hi ererybody!</div>
<div>&nbsp;</div>
<div>How can I solve this problem</div>
<div>&nbsp;</div>
<div>At id = 0</div>
<div>&nbsp;</div>
<div>double x1,fr;</div>
<div>&nbsp;</div>
<div>Do</div>
<div>{</div>
<div><font size="2">&nbsp;&nbsp; MPI_Recv(&amp;x2, 1, MPI_DOUBLE, 1, 1, MPI_COMM_WORLD, &amp;status);</font></div>
<div><font size="2">&nbsp;&nbsp; fr=x1+x2; </font></div>
<div><font size="2">&nbsp;&nbsp; MPI_Send(&amp;fr, 1, MPI_DOUBLE, 1, 1, MPI_COMM_WORLD,&amp;status);</font></div>
<div>&nbsp;&nbsp; .</div>
<div>&nbsp;&nbsp; .</div>
<div>}</div>
<div>&nbsp;</div>
<div>At id = 1</div>
<div><font size="2">
<div>&nbsp;</div>
<div>double x2,calc;</div>
<div>&nbsp;</div>
<div>Do</div>
<div>{</div></font></div>
<div><font size="2">&nbsp;&nbsp; MPI_Send(&amp;x2, 1, MPI_DOUBLE, 0, 1, MPI_COMM_WORLD,&amp;status); </font><font color="#008000" size="2">// MPI_Send(x2 em 1 -&gt; 0.).</font></div>
<div><font size="2">&nbsp;&nbsp; MPI_Recv(&amp;fr, 1, MPI_DOUBLE, 0, 1, MPI_COMM_WORLD, &amp;status);</font></div>
<div><font size="2">&nbsp;&nbsp; calc=fr*2;</font></div>
<div><font size="2">&nbsp;&nbsp; .</font></div>
<div><font size="2">&nbsp;&nbsp; .</font></div>
<div>}<br clear="all"></div>
<div>&nbsp;</div>
<div>Well, that is a slow solution. And that is my present problem. How can I optimize the comunication using non-blocking comunication?</div>
<div>I've tried MPI_Isend and MPI_Irecv, but i thing that I should use MPI_Wait somewhere (i don't know yet), to provide some syncronism. So, how can I solve the problem of time and became that syncronous?</div>
<div>&nbsp;</div>
<div>Thanks!<br>&nbsp;</div>
<div>-- <br>Bruno. </div>