:orphan:
# 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 Parameter

- ***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
 [](ch_stag), `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](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
