:orphan:
# TaoShellSetContext
sets the context for a `TAOSHELL`
## Synopsis
```
#include "petsctao.h"
PetscErrorCode TaoShellSetContext(Tao tao, void *ctx)
```
Logically Collective
## Input Parameters
- ***tao -*** the shell Tao
- ***ctx -*** the context
## Fortran Note
The context can only be an integer or a `PetscObject`
## See Also
`Tao`, `TAOSHELL`, `TaoCreateShell()`, `TaoShellGetContext()`
## Level
advanced
## Location
src/tao/shell/taoshell.c
## Examples
src/tao/constrained/tutorials/tomographyADMM.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/tao/shell/taoshell.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)