# DMDASetPreallocationCenterDimension
Determine the topology used to determine adjacency 
## Synopsis
```
#include "petscdmda.h"   
PetscErrorCode DMDASetPreallocationCenterDimension(DM dm, PetscInt preallocCenterDim)
```

## Input Parameters

- ***dm -*** The DM object
- ***preallocCenterDim -*** The dimension of points which connect adjacent entries





## Notes
```none
FEM:   Two points p and q are adjacent if q \in closure(star(p)), preallocCenterDim = dim
```
```none
FVM:   Two points p and q are adjacent if q \in star(cone(p)),    preallocCenterDim = dim-1
```
```none
FVM++: Two points p and q are adjacent if q \in star(closure(p)), preallocCenterDim = 0
```


## See Also
 `DMCreateMatrix()`, `DMDAPreallocateOperator()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/da/dapreallocate.c.html#DMDASetPreallocationCenterDimension">src/dm/impls/da/dapreallocate.c</A>


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


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