:orphan: # TaoSetApplicationContext Sets the optional user-defined context for a `Tao` solver. ## Synopsis ``` #include "petsctao.h" PetscErrorCode TaoSetApplicationContext(Tao tao, void *usrP) ``` Logically Collective ## Input Parameters - ***tao -*** the `Tao` context - ***usrP -*** optional user context ## See Also [](ch_tao), `Tao`, `TaoGetApplicationContext()`, `TaoSetApplicationContext()` ## Level intermediate ## Location src/tao/interface/taosolver.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/tao/interface/taosolver.c) [Index of all Tao routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)