#include "petscksp.h" PetscErrorCode PETSCKSP_DLLEXPORT KSPSetDiagonalScaleFix(KSP ksp,PetscTruth fix)Collective on KSP
|ksp||- the KSP context|
|fix||- PETSC_TRUE to scale back after the system solve, PETSC_FALSE to not rescale (default)|
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.
This routine is only used if the matrix and preconditioner matrix are the same thing.
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages