[petsc-dev] Ghost update in VecAssembly?

Jed Brown jed at jedbrown.org
Tue Mar 1 07:33:19 CST 2016


Matthew Knepley <knepley at gmail.com> writes:

> It was suggested to me that we add VecGhostUpdate() to VecAssembly(). This
> sounds
> reasonable to me. What do you think?

Uh, why?  What is the most common use of VecAssembly?  Seems like
building b or x_0 to solve A x = b, in which case you don't need updated
ghost values.  Also, who uses VecGhost _and_ VecAssembly for the same
Vec?  That's quite wasteful; if you have local indexing, why not just
use VecGhostUpdate(...,SCATTER_REVERSE)?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20160301/4c5e0d18/attachment.sig>


More information about the petsc-dev mailing list