# DMStagGetEntries
get number of native entries in the global representation 
## Synopsis
```
PetscErrorCode DMStagGetEntries(DM dm, PetscInt *entries)
```
Not Collective


## Input Parameter

- ***dm -*** the DMStag object



## Output Parameters

- ***entries -*** number of rank-native entries in the global representation



## Note
This is the number of entries on this rank for a global vector associated with `dm`.
That is, it is value of `size` returned by `VecGetLocalSize(vec,&size)` when
`DMCreateGlobalVector(dm,&vec) is used to create a `Vec`. Users would typically
use these functions.




## See Also
 `DMSTAG`, `DMStagGetDOF()`, `DMStagGetEntriesLocal()`, `DMStagGetEntriesPerElement()`, `DMCreateLocalVector()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/stag/stagutils.c.html#DMStagGetEntries">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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
