int SNESSetType(SNES snes,SNESType method)Collective on SNES
snes | - the SNES context |
method | - a known method |
Normally, it is best to use the SNESSetFromOptions() command and thenset the SNES solver type from the options database rather than by usingthis routine. Using the options database provides the user withmaximum flexibility in evaluating the many nonlinear solvers. The SNESSetType() routine is provided for those situations where itis necessary to set the nonlinear solver independently of the commandline or options database. This might be the case, for example, whenthe choice of solver changes during the execution of the program, and the user's application is taking responsibility for choosing theappropriate method. In other words, this routine is for the advanced user.
Location: src/snes/interface/snes.c
SNES Index
Table of Contents