:orphan: # PetscDualSpaceSetFromOptions sets parameters in a `PetscDualSpace` from the options database ## Synopsis ``` #include "petscfe.h" PetscErrorCode PetscDualSpaceSetFromOptions(PetscDualSpace sp) ``` Collective ## Input Parameter - ***sp -*** the `PetscDualSpace` object to set options for ## Options Database Keys - ***-petscdualspace_order -*** the approximation order of the space - ***-petscdualspace_form_degree -*** the form degree, say 0 for point evaluations, or 2 for area integrals - ***-petscdualspace_components -*** the number of components, say d for a vector field - ***-petscdualspace_refcell -*** Reference cell type name - ***-petscdualspace_lagrange_continuity -*** Flag for continuous element - ***-petscdualspace_lagrange_tensor -*** Flag for tensor dual space - ***-petscdualspace_lagrange_trimmed -*** Flag for trimmed dual space - ***-petscdualspace_lagrange_node_type -*** Lagrange node location type - ***-petscdualspace_lagrange_node_endpoints -*** Flag for nodes that include endpoints - ***-petscdualspace_lagrange_node_exponent -*** Gauss-Jacobi weight function exponent - ***-petscdualspace_lagrange_use_moments -*** Use moments (where appropriate) for functionals - ***-petscdualspace_lagrange_moment_order -*** Quadrature order for moment functionals ## See Also `PetscDualSpaceView()`, `PetscDualSpace`, `PetscObjectSetFromOptions()` ## Level intermediate ## Location src/dm/dt/dualspace/interface/dualspace.c ## Examples src/dm/dt/dualspace/impls/lagrange/tutorials/ex1.c
## Implementations PetscDualSpaceSetFromOptions_Lagrange in src/dm/dt/dualspace/impls/lagrange/dspacelagrange.c
PetscDualSpaceSetFromOptions_Simple in src/dm/dt/dualspace/impls/simple/dspacesimple.c
--- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)