#include "petscksp.h" #include "petscmat.h" PetscErrorCode KSPConvergedReasonView(KSP ksp, PetscViewer viewer)Collective on ksp
ksp | - iterative context obtained from KSPCreate() | |
viewer | - the viewer to display the reason |
-ksp_converged_reason | - print reason for converged or diverged, also prints number of iterations | |
-ksp_converged_reason ::failed | - only print reason and number of iterations when diverged |