[petsc-dev] checking if a vector is ghosted

Jed Brown jedbrown at mcs.anl.gov
Thu Nov 10 16:31:30 CST 2011


On Wed, Nov 9, 2011 at 17:52, Barry Smith <bsmith at mcs.anl.gov> wrote:

> Understood, thus there is the possiblity of user error if they are
> ghosting but process a non-ghosted vector.  I think the fact that basic
> stuff runs unchanged on one process with seq (for non-periodic stuff) out
> ways the risk of this problem.


Okay, after brief flirtation, I have remove VecIsGhosted(). Now
VecGhostGetLocalForm() never returns an error, but it does return NULL if
the Vec is not ghosted and not sequential.

VecGhostUpdateBegin() still throws an error if the Vec is not ghosted or
sequential.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20111110/e17b6a80/attachment.html>


More information about the petsc-dev mailing list