<div>Hi ererybody!</div>
<div> </div>
<div>How can I solve this problem</div>
<div> </div>
<div>At id = 0</div>
<div> </div>
<div>double x1,fr;</div>
<div> </div>
<div>Do</div>
<div>{</div>
<div><font size="2"> MPI_Recv(&x2, 1, MPI_DOUBLE, 1, 1, MPI_COMM_WORLD, &status);</font></div>
<div><font size="2"> fr=x1+x2; </font></div>
<div><font size="2"> MPI_Send(&fr, 1, MPI_DOUBLE, 1, 1, MPI_COMM_WORLD,&status);</font></div>
<div> .</div>
<div> .</div>
<div>}</div>
<div> </div>
<div>At id = 1</div>
<div><font size="2">
<div> </div>
<div>double x2,calc;</div>
<div> </div>
<div>Do</div>
<div>{</div></font></div>
<div><font size="2"> MPI_Send(&x2, 1, MPI_DOUBLE, 0, 1, MPI_COMM_WORLD,&status); </font><font color="#008000" size="2">// MPI_Send(x2 em 1 -> 0.).</font></div>
<div><font size="2"> MPI_Recv(&fr, 1, MPI_DOUBLE, 0, 1, MPI_COMM_WORLD, &status);</font></div>
<div><font size="2"> calc=fr*2;</font></div>
<div><font size="2"> .</font></div>
<div><font size="2"> .</font></div>
<div>}<br clear="all"></div>
<div> </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> </div>
<div>Thanks!<br> </div>
<div>-- <br>Bruno. </div>