:orphan: # PetscSpaceSetFromOptions sets parameters in a `PetscSpace` from the options database ## Synopsis ``` #include "petscfe.h" PetscErrorCode PetscSpaceSetFromOptions(PetscSpace sp) ``` Collective ## Input Parameter - ***sp -*** the `PetscSpace` object to set options for ## Options Database Keys - ***-petscspace_degree -*** the approximation order of the space - ***-petscspace_variables -*** the number of different variables, e.g. x and y - ***-petscspace_components -*** the number of components, say d for a vector field ## See Also `PetscSpace`, `PetscSpaceView()` ## Level intermediate ## Location src/dm/dt/space/interface/space.c ## Implementations PetscSpaceSetFromOptions_Polynomial in src/dm/dt/space/impls/poly/spacepoly.c
PetscSpaceSetFromOptions_Ptrimmed in src/dm/dt/space/impls/ptrimmed/spaceptrimmed.c
PetscSpaceSetFromOptions_Sum in src/dm/dt/space/impls/sum/spacesum.c
PetscSpaceSetFromOptions_Tensor in src/dm/dt/space/impls/tensor/spacetensor.c
PetscSpaceSetFromOptions_WXY in src/dm/dt/space/impls/wxy/spacewxy.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/dt/space/interface/space.c) [Index of all SPACE routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)