:orphan: # PetscDSSetDiscretization Sets the discretization object for the given field ## Synopsis ``` #include "petscds.h" PetscErrorCode PetscDSSetDiscretization(PetscDS prob, PetscInt f, PetscObject disc) ``` Not Collective ## Input Parameters - ***prob -*** The `PetscDS` object - ***f -*** The field number - ***disc -*** The discretization object ## See Also `PetscDS`, `PetscFE`, `PetscFV`, `PetscDSGetDiscretization()`, `PetscDSAddDiscretization()`, `PetscDSGetNumFields()`, `PetscDSCreate()` ## Level beginner ## Location src/dm/dt/interface/dtds.c ## Examples src/snes/tutorials/ex63.c
src/tao/tutorials/ex3.c
src/ts/tutorials/ex48.c
--- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)