:orphan:
# DMStagGetEntriesLocal
get number of entries in the local representation 
## Synopsis
```
PetscErrorCode DMStagGetEntriesLocal(DM dm, PetscInt *entries)
```
Not Collective


## Input Parameter

- ***dm -*** the `DMSTAG` object



## Output Parameter

- ***entries -*** number of entries in the local representation





## Note
This is the number of entries on this rank in the local representation.
That is, it is value of `size` returned by `VecGetSize(vec,&size)` or
`VecGetLocalSize(vec,&size)` when `DMCreateLocalVector(dm,&vec)` is used to
create a `Vec`. Users would typically use these functions.


## See Also
 [](ch_stag), `DMSTAG`, `DMStagGetDOF()`, `DMStagGetEntries()`, `DMStagGetEntriesPerElement()`, `DMCreateLocalVector()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/stag/stagutils.c.html#DMStagGetEntriesLocal">src/dm/impls/stag/stagutils.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/stag/stagutils.c)


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