<div class="gmail_quote">On Thu, Feb 23, 2012 at 15:16, Bojan Niceno <span dir="ltr">&lt;<a href="mailto:bojan.niceno@psi.ch">bojan.niceno@psi.ch</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">- Array unk, which should hold values inside the partition and in
    ghost cells.  It is big enough to hold both<br>
    - Vec x, created by command VecCreateGhost, with proper padding for
    ghost cells<br>
    - Successful call to linear solver in parallel.<br>
    <br>
    But I need to copy ghost values from x to my array unk. </div></blockquote></div><br><div>I&#39;m not sure what you&#39;re asking. You create the ghost array and use VecGhostGetLocalForm()/VecGhostRestoreLocalForm() to access and release access to the local vector (which includes the ghost points). You can into or out of the local form if you want, but usually people set up their indexing to use the ordering in the local form (owned values followed by ghosted values).</div>