Jan Blechta <[email protected]> writes:

> Is it that local representation returned by VecGhostGetLocalForm
> contains:
>
> 1. ghost values
> 2. view to non-ghosted values in global vector

The local form contains only space for the ghost values.  It behaves as
a normal sequential vector, with no knowledge that it came from
VecGhostGetLocalForm, let alone knowledge of how to "update" the ghosts.

> so that when on changes global vector (say by KSP) then values 2.
> changes appropriately while 1. remains unchanged?

Nothing related to the local form changes, just the global entries.  You
call VecGhostUpdateBegin/End, then VecGhostGetLocalForm if you want
access to ghost entries after the global vector has been modified.
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to