:orphan: # TSAdjointSetUp Sets up the internal data structures for the later use of an adjoint solver ## Synopsis ``` #include "petscts.h" PetscErrorCode TSAdjointSetUp(TS ts) ``` Collective ## Input Parameter - ***ts -*** the `TS` context obtained from `TSCreate()` ## See Also [](ch_ts), `TSCreate()`, `TSAdjointStep()`, `TSSetCostGradients()` ## Level advanced ## Location src/ts/interface/sensitivity/tssen.c ## Implementations TSAdjointSetUp_ARKIMEX in src/ts/impls/arkimex/arkimex.c
TSAdjointSetUp_RK in src/ts/impls/explicit/rk/rk.c
TSAdjointSetUp_Theta in src/ts/impls/implicit/theta/theta.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/interface/sensitivity/tssen.c) [Index of all Sensitivity routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)