# PetscLayoutSetISLocalToGlobalMapping
sets a `ISLocalGlobalMapping` into a `PetscLayout` 
## Synopsis
```
#include "petscis.h" 
PetscErrorCode PetscLayoutSetISLocalToGlobalMapping(PetscLayout in, ISLocalToGlobalMapping ltog)
```
Collective


## Input Parameters

- ***in -*** input `PetscLayout`
- ***ltog -*** the local to global mapping





## Notes
`PetscLayoutSetUp()` does not need to be called on the resulting `PetscLayout`

If the `PetscLayout` already contains a `ISLocalGlobalMapping` it is destroyed


## See Also
 [PetscLayout](sec_matlayout), `PetscLayoutCreate()`, `PetscLayoutDestroy()`, `PetscLayoutSetUp()`, `PetscLayoutDuplicate()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/utils/pmap.c.html#PetscLayoutSetISLocalToGlobalMapping">src/vec/is/utils/pmap.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/utils/pmap.c)


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