# DMPlexTransformSetFromOptions
Sets parameters in a transform from the options database 
## Synopsis
```
#include "petscdmplextransform.h" 
PetscErrorCode DMPlexTransformSetFromOptions(DMPlexTransform tr)
```
Collective on tr


## Input Parameter

- ***tr -*** the `DMPlexTransform` object to set options for



## Options Database Key

- ***-dm_plex_transform_type -*** Set the transform type, e.g. refine_regular





## See Also
 [](chapter_unstructured), `DM`, `DMPLEX`, `DMPlexTransform`, `DMPlexTransformView()`, `DMPlexTransformCreate()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/transform/interface/plextransform.c.html#DMPlexTransformSetFromOptions">src/dm/impls/plex/transform/interface/plextransform.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/tutorials/ex11.c.html">src/dm/impls/plex/tutorials/ex11.c.html</A><BR>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/transform/impls/extrude/plextrextrude.c.html#DMPlexTransformSetFromOptions_Extrude">DMPlexTransformSetFromOptions_Extrude in src/dm/impls/plex/transform/impls/extrude/plextrextrude.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/transform/impls/refine/1d/plexref1d.c.html#DMPlexTransformSetFromOptions_1D">DMPlexTransformSetFromOptions_1D in src/dm/impls/plex/transform/impls/refine/1d/plexref1d.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/transform/impls/refine/bl/plexrefbl.c.html#DMPlexTransformSetFromOptions_BL">DMPlexTransformSetFromOptions_BL in src/dm/impls/plex/transform/impls/refine/bl/plexrefbl.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/transform/impls/refine/sbr/plexrefsbr.c.html#DMPlexTransformSetFromOptions_SBR">DMPlexTransformSetFromOptions_SBR in src/dm/impls/plex/transform/impls/refine/sbr/plexrefsbr.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/transform/interface/plextransform.c)


[Index of all DMPlex routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
