# PetscDualSpaceSetFromOptions
sets parameters in a `PetscDualSpace` from the options database 
## Synopsis
```
#include "petscfe.h" 
PetscErrorCode PetscDualSpaceSetFromOptions(PetscDualSpace sp)
```
Collective on sp


## Input Parameter

- ***sp -*** the `PetscDualSpace` object to set options for



## Options Database Keys

- ***-petscdualspace_order <order>      -*** the approximation order of the space
- ***-petscdualspace_form_degree <deg>  -*** the form degree, say 0 for point evaluations, or 2 for area integrals
- ***-petscdualspace_components <c>     -*** the number of components, say d for a vector field
- ***-petscdualspace_refcell <celltype> -*** Reference cell type name





## See Also
 `PetscDualSpaceView()`, `PetscDualSpace`, `PetscObjectSetFromOptions()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/interface/dualspace.c.html#PetscDualSpaceSetFromOptions">src/dm/dt/dualspace/interface/dualspace.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/impls/lagrange/tutorials/ex1.c.html">src/dm/dt/dualspace/impls/lagrange/tutorials/ex1.c.html</A><BR>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/impls/lagrange/dspacelagrange.c.html#PetscDualSpaceSetFromOptions_Lagrange">PetscDualSpaceSetFromOptions_Lagrange in src/dm/dt/dualspace/impls/lagrange/dspacelagrange.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/impls/simple/dspacesimple.c.html#PetscDualSpaceSetFromOptions_Simple">PetscDualSpaceSetFromOptions_Simple in src/dm/dt/dualspace/impls/simple/dspacesimple.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/dt/dualspace/interface/dualspace.c)


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