23 Feb
2012
23 Feb
'12
8:35 p.m.
On Thu, Feb 23, 2012 at 15:16, Bojan Niceno <[email protected]> wrote:
- Array unk, which should hold values inside the partition and in ghost cells. It is big enough to hold both - Vec x, created by command VecCreateGhost, with proper padding for ghost cells - Successful call to linear solver in parallel.
But I need to copy ghost values from x to my array unk.
I'm not sure what you'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).