#include "petscsnes.h" PetscErrorCode SNESSetType(SNES snes,const SNESType type)Collective on SNES
| snes | - the SNES context | |
| type | - a known method |
| SNESLS | - Newton's method with line search (systems of nonlinear equations) | |
| SNESTR | - Newton's method with trust region (systems of nonlinear equations) |