You need to call VecGhostGetLocalForm()  and call VecGetSize() on that. Don't 
worry, its cost is only the function calls.

   Barry

On Sep 20, 2013, at 9:34 PM, Mohammad Mirzadeh <[email protected]> wrote:

> Hi guys,
> 
> Is there any function that would return the ghost (or ghost+local
> preferably) size of a ghosted vector? VecGetSize returns the total
> global size and VecGetLocalSize returns only the local part.
> 
> I need this size for a error-checking guard i'm adding in my code.
> 
> Thanks,
> Mohammad

Reply via email to