:orphan: # KSPGetDiagonalScaleFix Determines if `KSP` diagonally scales the system back after solving. That is `KSPSetDiagonalScaleFix()` has been called ## Synopsis ``` #include "petscksp.h" #include "petscmat.h" PetscErrorCode KSPGetDiagonalScaleFix(KSP ksp, PetscBool *fix) ``` Not Collective ## Input Parameter - ***ksp -*** the `KSP` context ## Output Parameter - ***fix -*** `PETSC_TRUE` to scale back after the system solve, `PETSC_FALSE` to not rescale (default) ## See Also [](ch_ksp), `KSPGetDiagonalScale()`, `KSPSetDiagonalScale()`, `KSPSetDiagonalScaleFix()`, `KSP` ## Level intermediate ## Location src/ksp/ksp/interface/itfunc.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/ksp/interface/itfunc.c) [Index of all KSP routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)