:orphan:
# DMPlexComputeCellGeometryFEM
Compute the Jacobian, inverse Jacobian, and Jacobian determinant at each quadrature point in the given cell 
## Synopsis
```
#include "petscdmplex.h"   
#include "petscfe.h"       
PetscErrorCode DMPlexComputeCellGeometryFEM(DM dm, PetscInt cell, PetscQuadrature quad, PetscReal *v, PetscReal *J, PetscReal *invJ, PetscReal *detJ)
```
Collective


## Input Parameters

- ***dm   -*** the `DMPLEX`
- ***cell -*** the cell
- ***quad -*** the quadrature containing the points in the reference element where the geometry will be evaluated.  If `quad` is `NULL`, geometry will be
evaluated at the first vertex of the reference element



## Output Parameters

- ***v    -*** the image of the transformed quadrature points, otherwise the image of the first vertex in the closure of the reference element
- ***J    -*** the Jacobian of the transform from the reference element at each quadrature point
- ***invJ -*** the inverse of the Jacobian at each quadrature point
- ***detJ -*** the Jacobian determinant at each quadrature point





## See Also
 `DMPLEX`, `DMGetCoordinateSection()`, `DMGetCoordinates()`

## Level
advanced

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/tutorials/ex3.c.html">src/tao/tutorials/ex3.c</A><BR>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexgeometry.c.html#DMPlexComputeCellGeometryFEM_Implicit">DMPlexComputeCellGeometryFEM_Implicit in src/dm/impls/plex/plexgeometry.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexgeometry.c.html#DMPlexComputeCellGeometryFEM_FE">DMPlexComputeCellGeometryFEM_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)  
