# VecGhostIsLocalForm
Checks if a given vector is the local form of a global vector 
## Synopsis
```
#include "petscvec.h"   
PetscErrorCode VecGhostIsLocalForm(Vec g, Vec l, PetscBool *flg)
```
Not Collective


## Input Parameters

- ***g -*** the global vector
- ***l -*** the local vector



## Output Parameter

- ***flg -*** PETSC_TRUE if local vector is local form





## See Also
 `VecCreateGhost()`, `VecGhostRestoreLocalForm()`, `VecCreateGhostWithArray()`, `VecGhostGetLocalForm()`


## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/vec/impls/mpi/commonmpvec.c.html#VecGhostIsLocalForm">src/vec/vec/impls/mpi/commonmpvec.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/vec/impls/mpi/commonmpvec.c)


[Index of all Vec routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
