#include "petscksp.h" #include "petscmat.h" PetscErrorCode KSPSetComputeSingularValues(KSP ksp,PetscBool flg)Logically Collective on ksp
ksp | - iterative context obtained from KSPCreate() | |
flg | - PETSC_TRUE or PETSC_FALSE |
-ksp_monitor_singular_value | - Activates KSPSetComputeSingularValues() |
Many users may just want to use the monitoring routine KSPMonitorSingularValue() (which can be set with option -ksp_monitor_singular_value) to print the singular values at each iteration of the linear solve.