int PCSetType(PC ctx,PCType type)Collective on PC
pc | - the preconditioner context. |
type | - a known method |
Use -help for a list of available methods (for instance, jacobi or bjacobi)
Normally, it is best to use the SLESSetFromOptions() command andthen set the PC type from the options database rather than by usingthis routine. Using the options database provides the user withmaximum flexibility in evaluating the many different preconditioners. The PCSetType() routine is provided for those situations where itis necessary to set the preconditioner independently of the commandline or options database. This might be the case, for example, whenthe choice of preconditioner changes during the execution of theprogram, and the user's application is taking responsibility forchoosing the appropriate preconditioner. In other words, thisroutine is for the advanced user.
Location: src/pc/interface/pcset.c
PC Index
Table of Contents