#include "petscksp.h" PetscErrorCode KSPConvergedDefaultSetUIRNorm(KSP ksp)Collective on ksp
The precise values of reason are macros such as KSP_CONVERGED_RTOL, which are defined in petscksp.h.
If the convergence test is not KSPConvergedDefault() then this is ignored.
If right preconditioning is being used then B does not appear in the above formula.