#include "petscsnes.h" PetscErrorCode SNESCreate(MPI_Comm comm,SNES *outsnes)Collective
comm | - MPI communicator |
outsnes | - the new SNES context |
-snes_mf | - Activates default matrix-free Jacobian-vector products, and no preconditioning matrix | |
-snes_mf_operator | - Activates default matrix-free Jacobian-vector products, and a user-provided preconditioning matrix as set by SNESSetJacobian() | |
-snes_fd | - Uses (slow!) finite differences to compute Jacobian |
SNES always creates the snes->kspconvctx even though it is used by only one type. This should be fixed.