:orphan: # PCShellGetContext Returns the user-provided context associated with a shell `PC` ## Synopsis ``` #include "petscpc.h" PetscErrorCode PCShellGetContext(PC pc, void *ctx) ``` Not Collective ## Input Parameter - ***pc -*** of type `PCSHELL` created with `PCSetType`(pc,shell) ## Output Parameter - ***ctx -*** the user provided context ## Note This routine is intended for use within various shell routines ## Fortran Note To use this from Fortran you must write a Fortran interface definition for this function that tells Fortran the Fortran derived data type that you are passing in as the ctx argument. ## See Also `PCSHELL`, `PCShellSetContext()` ## Level advanced ## Location src/ksp/pc/impls/shell/shellpc.c ## Examples src/ksp/ksp/tutorials/ex15.c
src/ksp/ksp/tutorials/ex60.c
src/tao/pde_constrained/tutorials/hyperbolic.c
src/tao/pde_constrained/tutorials/parabolic.c
--- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)