#include "petscsnes.h" #include "petscdm.h" PetscErrorCode MatCreateSNESMF(SNES snes,Mat *J)Collective on SNES and Vec Many br
Many br
If you wish to provide a different function to do differencing on to compute the matrix-free operator than Many brthat provided to SNESSetFunction() then call MatMFFDSetFunction() with your function after this call. Many br
The difference between this routine and MatCreateMFFD() is that this matrix Many brautomatically gets the current base vector from the SNES object and not from an Many brexplicit call to MatMFFDSetBase(). Many br
Level:advanced
Location:src/snes/mf/snesmfj.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages