#include "petscpc.h" PetscErrorCode PCSetType(PC pc,const 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 KSPSetFromOptions() command and then set the PC type from the options database rather than by using this routine. Using the options database provides the user with maximum flexibility in evaluating the many different preconditioners. The PCSetType() routine is provided for those situations where it is necessary to set the preconditioner independently of the command line or options database. This might be the case, for example, when the choice of preconditioner changes during the execution of the program, and the user's application is taking responsibility for choosing the appropriate preconditioner. In other words, this routine is not for beginners.
Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages