:orphan: # PCSetFailedReason Sets the reason a `PCSetUp()` failed or `PC_NOERROR` if it did not fail ## Synopsis ``` #include "petscksp.h" PetscErrorCode PCSetFailedReason(PC pc, PCFailedReason reason) ``` Logically Collective ## Input Parameters - ***pc -*** the preconditioner context - ***reason -*** the reason it failedx ## See Also `PC`, `PCCreate()`, `PCApply()`, `PCDestroy()`, `PCFailedReason` ## Level advanced ## Location src/ksp/pc/interface/precon.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/interface/precon.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)