PCGetApplicationContext — PETSc 3.21.4 documentation

Skip to main content
`Ctrl`+`K`

# PCGetApplicationContext

Gets the user-defined context for the preconditioner set with `PCSetApplicationContext()`

## Synopsis

    #include "petscpc.h"
    PetscErrorCode PCGetApplicationContext(PC pc, void *usrP)

Not Collective

## Input Parameter

- pc - `PC` context

## Output Parameter

- usrP - user context

## See Also

KSP: Linear System Solvers, `PC`, `PCSetApplicationContext()`, `KSPSetApplicationContext()`, `KSPGetApplicationContext()`

## Level

intermediate

## Location

src/ksp/pc/interface/pcset.c

Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages