#include "petscksp.h" #include "petscmat.h" PetscErrorCode KSPGetComputeSingularValues(KSP ksp,PetscBool *flg)Not Collective
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.