:orphan: # 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 `l` is the local form ## See Also [](ch_vectors), `Vec`, `VecType`, `VecCreateGhost()`, `VecGhostRestoreLocalForm()`, `VecCreateGhostWithArray()`, `VecGhostGetLocalForm()` ## Level advanced ## Location src/vec/vec/impls/mpi/commonmpvec.c --- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)