:orphan:
# DMPlexReferenceToCoordinates
Map references coordinates to coordinates in the the mesh for a single element map. 
## Synopsis
```
#include "petscdmplex.h"   
#include "petscfe.h"       
PetscErrorCode DMPlexReferenceToCoordinates(DM dm, PetscInt cell, PetscInt numPoints, const PetscReal refCoords[], PetscReal realCoords[])
```
Not Collective


## Input Parameters

- ***dm         -*** The mesh, with coordinate maps defined either by a PetscDS for the coordinate `DM` (see `DMGetCoordinateDM()`) or
implicitly by the coordinates of the corner vertices of the cell: as an affine map for simplicial elements, or
as a multilinear map for tensor-product elements
- ***cell       -*** the cell whose map is used.
- ***numPoints  -*** the number of points to locate
- ***refCoords  -*** (numPoints x dimension) array of reference coordinates (see `DMGetDimension()`)



## Output Parameter

- ***realCoords -*** (numPoints x coordinate dimension) array of coordinates (see `DMGetCoordinateDim()`)





## See Also
 `DMPLEX`, `DMPlexCoordinatesToReference()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexgeometry.c.html#DMPlexReferenceToCoordinates">src/dm/impls/plex/plexgeometry.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexgeometry.c.html#DMPlexReferenceToCoordinates_Tensor">DMPlexReferenceToCoordinates_Tensor in src/dm/impls/plex/plexgeometry.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexgeometry.c.html#DMPlexReferenceToCoordinates_FE">DMPlexReferenceToCoordinates_FE in src/dm/impls/plex/plexgeometry.c</A><BR>


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