# DMRedundantSetSize
Sets the size of a densely coupled redundant object 
## Synopsis
```
#include "petscdmredundant.h" 
PetscErrorCode DMRedundantSetSize(DM dm, PetscMPIInt rank, PetscInt N)
```
Collective on dm


## Input Parameters

- ***dm -*** redundant DM
- ***rank -*** rank of process to own redundant degrees of freedom
- ***N -*** total number of redundant degrees of freedom





## See Also
`DMDestroy()`, `DMCreateGlobalVector()`, `DMRedundantCreate()`, `DMRedundantGetSize()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/redundant/dmredundant.c.html#DMRedundantSetSize">src/dm/impls/redundant/dmredundant.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/redundant/dmredundant.c.html#DMRedundantSetSize_Redundant">DMRedundantSetSize_Redundant in src/dm/impls/redundant/dmredundant.c</A><BR>


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


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