PetscFECreateCellGeometry — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# PetscFECreateCellGeometry

Populates the arrays in a `PetscFEGeom` for a single reference cell of a `PetscFE`.

## Synopsis

    #include "petscfe.h"
    PetscErrorCode PetscFECreateCellGeometry(PetscFE fe, PetscQuadrature quad, PetscFEGeom *cgeom)

Not Collective

## Input Parameters

- fe - the `PetscFE` whose dual-space `DM` provides the reference cell

- quad - the quadrature at which to evaluate the geometry, or `NULL` to use the `PetscFE`’s own quadrature

## Output Parameter

- cgeom - the `PetscFEGeom` populated with reference-cell coordinates, Jacobians, inverse Jacobians, and their determinants

## Notes

This does not create `cgeom`, it allocates the arrays within one

Free the storage with `PetscFEDestroyCellGeometry()`.

## See Also

`PetscFE`, `PetscFEGeom`, `PetscFEDestroyCellGeometry()`, `PetscFEGetQuadrature()`, `DMPlexComputeCellGeometryFEM()`

## Level

developer

## Location

src/dm/dt/fe/interface/fe.c

Index of all FE routines
Table of Contents for all manual pages
Index of all manual pages