KSPGetDiagonalScale#

Checks if KSP solver scales the matrix and right hand side

Synopsis#

#include "petscksp.h" 
#include "petscmat.h" 
PetscErrorCode KSPGetDiagonalScale(KSP ksp, PetscBool *scale)

Not Collective

Input Parameter#

  • ksp - the KSP context

Output Parameter#

Notes#

BE CAREFUL with this routine: it actually scales the matrix and right hand side that define the system. After the system is solved the matrix and right hand side remain scaled unless you use KSPSetDiagonalScaleFix()

See Also#

KSPSetDiagonalScale(), KSPSetDiagonalScaleFix(), KSP

Level#

intermediate

Location#

src/ksp/ksp/interface/itfunc.c


Edit on GitLab

Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages