# DMSetCoordinateDim
Set the dimension of the embedding space for coordinate values. 
## Synopsis
```
#include "petscdm.h"          
PetscErrorCode DMSetCoordinateDim(DM dm, PetscInt dim)
```
Not Collective


## Input Parameters

- ***dm  -*** The `DM` object
- ***dim -*** The embedding dimension





## See Also
 `DM`, `DMGetCoordinateDim()`, `DMSetCoordinateSection()`, `DMGetCoordinateSection()`, `DMGetLocalSection()`, `DMSetLocalSection()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/interface/dmcoordinates.c.html#DMSetCoordinateDim">src/dm/interface/dmcoordinates.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/interface/dmcoordinates.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)  
