:orphan:
# TaoShellGetContext
Returns the user-provided context associated with a `TAOSHELL` 
## Synopsis
```
#include "petsctao.h" 
PetscErrorCode TaoShellGetContext(Tao tao, void *ctx)
```
Not Collective


## Input Parameter

- ***tao -*** should have been created with `TaoSetType`(tao,`TAOSHELL`);



## Output Parameter

- ***ctx -*** the user provided context





## Note
This routine is intended for use within various shell routines


## See Also
 `Tao`, `TAOSHELL`, `TaoCreateShell()`, `TaoShellSetContext()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/shell/taoshell.c.html#TaoShellGetContext">src/tao/shell/taoshell.c</A>

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


---
[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)  
