[petsc-users] ghost size of a ghosted vector
    Barry Smith 
    bsmith at mcs.anl.gov
       
    Fri Sep 20 21:40:47 CDT 2013
    
    
  
  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 <mirzadeh at gmail.com> 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
    
    
More information about the petsc-users
mailing list