<div dir="ltr">Mohmad,<br><br><br>One way is to gather and print it on rank0. <br><br>The other way is to have loop from <br>i --&gt; sizeOfCommWorld <br>and call print if rank==i <br>else <br>    do nothing <br><br>and yes put a barrier so that printing is in order. <br>
<br>I don&#39;t know if there is any efficient way.<br><br><br clear="all"><span style="color:rgb(0,0,0)">Bibrak </span><span style="color:rgb(0,0,0)"><br></span><font color="#888888"></font><br>
<br><br><div class="gmail_quote">On Wed, Feb 15, 2012 at 5:14 PM, mohamed ali <span dir="ltr">&lt;<a href="mailto:eng1182@gmail.com">eng1182@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote">Hi there<br><br>I´m a beginner in this interresting matter and i tried to devide a for loop among processes. I put the limits of the loop depending on the process like: ( for i=(Rank*Ntotal/Nprocesses+1), (Rank*Ntotal/Nprocesses+1)+ Ntotal/Nprocesses-1) and there is modifications in the data of an array that is defiened by array(i). the question is : to print the resulting array, should I make gather statement and put it in a new array in the rank 0 or what?<br>


<br>Thanks in advance.<br>
</div><br>
<br>_______________________________________________<br>
mpich-discuss mailing list     <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br></blockquote></div><br></div>