# PetscDSSetFromOptions
sets parameters in a `PetscDS` from the options database 
## Synopsis
```
#include "petscds.h" 
PetscErrorCode PetscDSSetFromOptions(PetscDS prob)
```
Collective on prob


## Input Parameter

- ***prob -*** the `PetscDS` object to set options for



## Options Database Keys

- ***-petscds_type <type>     -*** Set the `PetscDS` type
- ***-petscds_view <view opt> -*** View the `PetscDS`
- ***-petscds_jac_pre         -*** Turn formation of a separate Jacobian preconditioner on or off
- ***-bc_<name> <ids>         -*** Specify a list of label ids for a boundary condition
- ***-bc_<name>_comp <comps>  -*** Specify a list of field components to constrain for a boundary condition





## See Also
 `PetscDS`, `PetscDSView()`

## Level
intermediate

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

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


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


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