DMPlexSetTransform — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# DMPlexSetTransform

Set the `DMPlexTransform` cached on the `DM`

## Synopsis

    #include "petscdmplex.h"
    #include "petscdmplextransform.h"
    PetscErrorCode DMPlexSetTransform(DM dm, DMPlexTransform tr)

Not Collective

## Input Parameters

- dm - The `DM`

- tr - The `DMPlexTransform`

## Note

This is normally used together with `DMPlexSetSaveTransform()` so that the transform used to produce the refined mesh remains accessible.

## See Also

DMPlex: Unstructured Grids, `DM`, `DMPLEX`, `DMPlexTransform`, `DMPlexGetTransform()`, `DMPlexSetSaveTransform()`, `DMPlexGetSaveTransform()`

## Level

developer

## Location

src/dm/impls/plex/plexrefine.c

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