# ISLocalToGlobalMappingGetSize
Gets the local size of a local to global mapping 
## Synopsis
```
#include "petscis.h"  
PetscErrorCode ISLocalToGlobalMappingGetSize(ISLocalToGlobalMapping mapping, PetscInt *n)
```
Not Collective


## Input Parameter

- ***ltog -*** local to global mapping



## Output Parameter

- ***n -*** the number of entries in the local mapping, `ISLocalToGlobalMappingGetIndices()` returns an array of this length





## See Also
 [](sec_scatter), `ISLocalToGlobalMapping`, `ISLocalToGlobalMappingDestroy()`, `ISLocalToGlobalMappingCreate()`

## Level
advanced

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/utils/isltog.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)  
