# SNESLineSearchShellGetUserFunc
Gets the user function and context for the  `SNESLINESEARCHSHELL` 
## Synopsis
```
PetscErrorCode SNESLineSearchShellGetUserFunc(SNESLineSearch linesearch, SNESLineSearchUserFunc *func, void **ctx)
```
Not Collective


## Input Parameter

- ***linesearch -*** the line search object



## Output Parameters

- ***func  -*** the user function; can be NULL if you do not want it
- ***ctx   -*** the user function context; can be NULL if you do not want it





## See Also
 `SNESLineSearchShellSetUserFunc()`, `SNESLINESEARCHSHELL`, `SNESLineSearchType`, `SNESLineSearch`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/linesearch/impls/shell/linesearchshell.c.html#SNESLineSearchShellGetUserFunc">src/snes/linesearch/impls/shell/linesearchshell.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/snes/linesearch/impls/shell/linesearchshell.c)


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