:orphan:
# DMPlexCopyCoordinates
Copy coordinates from one mesh to another with the same vertices
## Synopsis
```
#include "petscdmplex.h"
PetscErrorCode DMPlexCopyCoordinates(DM dmA, DM dmB)
```
Collective
## Input Parameter
- ***dmA -*** The `DMPLEX` object with initial coordinates
## Output Parameter
- ***dmB -*** The `DMPLEX` object with copied coordinates
## Note
This is typically used when adding pieces other than vertices to a mesh
## See Also
`DMPLEX`, `DMCopyLabels()`, `DMGetCoordinates()`, `DMGetCoordinatesLocal()`, `DMGetCoordinateDM()`, `DMGetCoordinateSection()`
## Level
intermediate
## Location
src/dm/impls/plex/plexinterpolate.c
## Examples
src/dm/impls/plex/tutorials/ex3f90.F90
src/tao/tutorials/ex3.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plexinterpolate.c)
[Index of all DMPlex routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)