#include "petscksp.h" PetscErrorCode KSPGMRESSetOrthogonalization(KSP ksp,PetscErrorCode (*fcn)(KSP,PetscInt))Logically Collective on ksp
ksp | - iterative context obtained from KSPCreate | |
fcn | - orthogonalization function |
errorcode = PetscErrorCode fcn(KSP ksp,PetscInt it);
it is one minus the number of GMRES iterations since last restart;
i.e. the size of Krylov space minus one
KSPGMRESModifiedGramSchmidtOrthogonalization()
KSPGMRESClassicalGramSchmidtOrthogonalization() - Default. Use KSPGMRESSetCGSRefinementType() to determine if iterative refinement is used to increase stability.
-ksp_gmres_classicalgramschmidt | - Activates KSPGMRESClassicalGramSchmidtOrthogonalization() (default) | |
-ksp_gmres_modifiedgramschmidt | - Activates KSPGMRESModifiedGramSchmidtOrthogonalization() |