DMPlexTransformCohesiveExtrudeSetTensor — PETSc 3.23.0 documentation

Skip to main content
`Ctrl`+`K`

# DMPlexTransformCohesiveExtrudeSetTensor

Set the flag to use tensor cells

## Synopsis

    #include "petscdmplextransform.h"
    PetscErrorCode DMPlexTransformCohesiveExtrudeSetTensor(DMPlexTransform tr, PetscBool useTensor)

Not Collective

## Input Parameters

- tr - The `DMPlexTransform`

- useTensor - The flag for tensor cells

## Note

This flag determines the orientation behavior of the created points For example, if tensor is `PETSC_TRUE`, then

      DM_POLYTOPE_POINT_PRISM_TENSOR is made instead of DM_POLYTOPE_SEGMENT,
      DM_POLYTOPE_SEG_PRISM_TENSOR instead of DM_POLYTOPE_QUADRILATERAL,
      DM_POLYTOPE_TRI_PRISM_TENSOR instead of DM_POLYTOPE_TRI_PRISM, and
      DM_POLYTOPE_QUAD_PRISM_TENSOR instead of DM_POLYTOPE_HEXAHEDRON.

## See Also

`DMPlexTransform`, `DMPlexTransformCohesiveExtrudeGetTensor()`, `DMPlexTransformExtrudeSetTensor()`

## Level

intermediate

## Location

src/dm/impls/plex/transform/impls/extrude/plextrcohesive.c

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