#include "petscksp.h" PetscErrorCode PCGetDiagonalScale(PC pc,PetscBool *flag)Logically Collective on PC
Notes: If this returns PETSC_TRUE then the system solved via the Krylov method is
D M A D^{-1} y = D M b for left preconditioning or
D A M D^{-1} z = D b for right preconditioning