<a href="http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Vec/VecStrideScatterAll.html">http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Vec/VecStrideScatterAll.html</a><div>
<br></div><div>  Matt<br><br><div class="gmail_quote">On Sat, Jun 4, 2011 at 5:01 AM, khalid ashraf <span dir="ltr">&lt;<a href="mailto:khalid_eee@yahoo.com">khalid_eee@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><div>Hi,</div><div>I want to copy 3 parallel vectors of size N into a vector of size 3N where the 3 vector entries goes as </div><div>dest(3*i)=vec1(i);</div>
<div>dest(1+3*i)=vec2(i);</div><div>dest(2+3*i)=vec3(i);</div><div><br></div><div>Could you please suggest what would be the most efficient way to copy for parallel performance. </div><div><br></div><div>I guess it would be best if all the vectors have the same parallel layout. Is there a way to make sure that the vectors vec1(N elements) and dest(3N elements) have similar parallel layout ? </div>
<div><br></div><div>Thanks in advance.</div><div><br></div><font color="#888888"><div>Khalid</div><div><br></div><div></div>


</font></div></div></blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>
</div>