int KSPSetType(KSP ksp,KSPType itmethod)Collective on KSP
Normally, it is best to use the SLESSetFromOptions() command andthen set the KSP type from the options database rather than by usingthis routine. Using the options database provides the user withmaximum flexibility in evaluating the many different Krylov methods. The KSPSetType() routine is provided for those situations where itis necessary to set the iterative solver independently of the commandline or options database. This might be the case, for example, whenthe choice of iterative solver changes during the execution of theprogram, and the user's application is taking responsibility forchoosing the appropriate method. In other words, this routine isfor the advanced user.
Location: src/ksp/interface/itcreate.c
KSP Index
Table of Contents