[petsc-users] Ghost communication
Jed Brown
jed at 59A2.org
Wed Jun 22 09:50:45 CDT 2011
On Wed, Jun 22, 2011 at 16:45, Milan Mitrovic <milan.v.mitrovic at gmail.com>wrote:
> Both vectors are created with the VecCreateGhostWithArray as pasted above.
>
> The ghosts never get updated... I put a dummy value and it stays untouched.
>
Please paste the code you used to conclude this and what you expected to
see.
>
> 'to' is also a ghosted vector but the contributions from the ghosts
> should be discarded. The ghosts are only used to compute the new local
> values.
>
Then why were you using this?
CALL VecGhostUpdateBegin(to,ADD_VALUES,SCATTER_REVERSE,info)
CALL VecGhostUpdateEnd(to,ADD_VALUES,SCATTER_REVERSE,info)
What did you expect that to do?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110622/d84e3507/attachment.htm>
More information about the petsc-users
mailing list