DMPlexTransformGetSubcellOrientationIdentity — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# DMPlexTransformGetSubcellOrientationIdentity

Default `getsubcellorientation` implementation for transforms that reproduce the input mesh

## Synopsis

    #include "petscdmplextransform.h"
    PetscErrorCode DMPlexTransformGetSubcellOrientationIdentity(DMPlexTransform tr, DMPolytopeType sct, PetscInt sp, PetscInt so, DMPolytopeType tct, PetscInt r, PetscInt o, PetscInt *rnew, PetscInt *onew)

Not Collective

## Input Parameters

- tr - The `DMPlexTransform`

- sct - The source point cell type

- sp - The source point

- so - The orientation of the source point in its enclosing parent

- tct - The target point cell type

- r - The replica number requested for the produced cell type

- o - The orientation of the replica

## Output Parameters

- rnew - The replica number, given the orientation of the parent (returns `r`)

- onew - The replica orientation composed with the source orientation

## Note

This is the identity variant used by transforms such as the “identity” refiner where each source point produces itself, so the replica number is unchanged and the returned orientation is simply `o` composed with `so` via `DMPolytopeTypeComposeOrientation()`.

## See Also

DMPlex: Unstructured Grids, `DM`, `DMPLEX`, `DMPlexTransform`, `DMPlexTransformGetSubcellOrientation()`, `DMPlexTransformCellTransformIdentity()`, `DMPolytopeTypeComposeOrientation()`

## Level

developer

## Location

src/dm/impls/plex/transform/interface/plextransform.c

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