# TaoShellSetContext
sets the context for a shell Tao 
## Synopsis
```
#include "petsctao.h" 
PetscErrorCode TaoShellSetContext(Tao tao, void *ctx)
```
Logically Collective on Tao


## Input Parameters

- ***tao -*** the shell Tao
- ***ctx -*** the context





## Fortran Notes
The context can only be an integer or a PetscObject
unfortunately it cannot be a Fortran array or derived type.


## See Also
 `TaoCreateShell()`, `TaoShellGetContext()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/unconstrained/impls/cg/taoshell.c.html#TaoShellSetContext">src/tao/unconstrained/impls/cg/taoshell.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/constrained/tutorials/tomographyADMM.c.html">src/tao/constrained/tutorials/tomographyADMM.c.html</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/tao/unconstrained/impls/cg/taoshell.c)


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