#include "petscksp.h" PetscErrorCode PCGetFailedReason(PC pc,PCFailedReason *reason)Logically Collective on PC
pc | - the preconditioner context |
reason | - the reason it failed |
Notes: This is the maximum over reason over all ranks in the PC communicator. It is only valid after a call KSPCheckDot() or KSPCheckNorm() inside a KSPSolve(). It is not valid immediately after a PCSetUp() or PCApply(), then use PCGetFailedReasonRank()