On Fri, Feb 20, 2009 at 1:05 PM, Yixun Liu <span dir="ltr">&lt;<a href="mailto:enjoywm@cs.wm.edu">enjoywm@cs.wm.edu</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Can I use VecCreateMPIWithArray(PETSC_COMM_WORLD, 2*gdata-&gt;mlocal_vert,<br>
PETSC_DECIDE, gdata-&gt;vert, &amp;vert) to get Vec vert, which stores the<br>
coordinates according to PETSc order?</blockquote><div><br>I do not understand what you are asking. Just creating a vector will not put the coordinates<br>in it. Why not just use the Vec from the function given in the last message?<br>
<br>&nbsp; Matt<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><font color="#888888"><br>
Yixun<br>
</font></blockquote></div>-- <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>