**petsc-3.7.3 2016-07-24**

# KSPSetDiagonalScaleFix

Tells KSP to diagonally scale the system back after solving.
### Synopsis

#include "petscksp.h"
PetscErrorCode KSPSetDiagonalScaleFix(KSP ksp,PetscBool fix)

Logically Collective on KSP

### Input Parameter

### Notes

Must be called after KSPSetDiagonalScale()
Using this 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.

### Keywords

KSP, set, options, prefix, database

### See Also

KSPGetDiagonalScale(), KSPSetDiagonalScale(), KSPGetDiagonalScaleFix()

**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