:orphan:
# DMPlexComputeCellGeometryAffineFEM
Assuming an affine map, compute the Jacobian, inverse Jacobian, and Jacobian determinant for a given cell 
## Synopsis
```
#include "petscdmplex.h"   
#include "petscfe.h"       
PetscErrorCode DMPlexComputeCellGeometryAffineFEM(DM dm, PetscInt cell, PetscReal *v0, PetscReal *J, PetscReal *invJ, PetscReal *detJ)
```
Collective


## Input Parameters

- ***dm   -*** the `DMPLEX`
- ***cell -*** the cell



## Output Parameters

- ***v0   -*** the translation part of this affine transform, meaning the translation to the origin (not the first vertex of the reference cell)
- ***J    -*** the Jacobian of the transform from the reference element
- ***invJ -*** the inverse of the Jacobian
- ***detJ -*** the Jacobian determinant





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

## Level
advanced

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/tutorials/ex3f90.F90.html">src/dm/impls/plex/tutorials/ex3f90.F90</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)  
