**petsc-3.15.0 2021-04-05**

# KSPGetDiagonalScaleFix

Determines if KSP diagonally scales the system back after solving.
### Synopsis

#include "petscksp.h"
#include "petscmat.h"
PetscErrorCode KSPGetDiagonalScaleFix(KSP ksp,PetscBool *fix)

Not Collective

### Input Parameter

### Output Parameter

### Notes

Must be called after KSPSetDiagonalScale()
If PETSC_TRUE will slow things down, because it rescales the matrix before and
after each linear solve. This is intended mainly for testing to allow one
to easily get back the original system to make sure the solution computed is
accurate enough.

### See Also

KSPGetDiagonalScale(), KSPSetDiagonalScale(), KSPSetDiagonalScaleFix(), KSP

### Level

intermediate

### Location

src/ksp/ksp/interface/itfunc.c

Index of all KSP routines

Table of Contents for all manual pages

Index of all manual pages