:orphan: # VecGetLayout get `PetscLayout` describing a vector layout ## Synopsis ``` #include "petscvec.h" PetscErrorCode VecGetLayout(Vec x, PetscLayout *map) ``` Not Collective ## Input Parameter - ***x -*** the vector ## Output Parameter - ***map -*** the layout ## Note The layout determines what vector elements are contained on each MPI process ## See Also [](ch_vectors), `PetscLayout`, `Vec`, `VecGetSizes()`, `VecGetOwnershipRange()`, `VecGetOwnershipRanges()` ## Level developer ## Location src/vec/vec/interface/vector.c ## Examples src/vec/vec/utils/tagger/tutorials/ex1.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/vec/interface/vector.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)