# PCShellGetName
Gets an optional name that the user has set for a `PCSHELL` preconditioner. 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCShellGetName(PC pc, const char *name[])
```
Not Collective


## Input Parameter

- ***pc -*** the preconditioner context



## Output Parameter

- ***name -*** character string describing shell preconditioner (you should not free this)





## See Also
 `PCSHELL`, `PCShellSetName()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/shell/shellpc.c.html#PCShellGetName">src/ksp/pc/impls/shell/shellpc.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/shell/shellpc.c.html#PCShellGetName_Shell">PCShellGetName_Shell in src/ksp/pc/impls/shell/shellpc.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/impls/shell/shellpc.c)


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