# KSP_DIVERGED_INDEFINITE_PC#

It appears the preconditioner is indefinite (has both positive and negative eigenvalues) and this Krylov method (KSPCG) requires it to be positive definite

## Note#

This can happen with the PCICC preconditioner, use -pc_factor_shift_positive_definite to force the PCICC preconditioner to generate a positive definite preconditioner

KSPSolve(), KSPGetConvergedReason(), KSPConvergedReason, KSPSetTolerances()

beginner

## Location#

include/petscksp.h

Edit on GitLab