DMSNESSetMFFunction#
set SNES residual evaluation function used in applying the matrix-free Jacobian with -snes_mf_operator
Synopsis#
#include "petscsnes.h"
#include "petscdm.h"
PetscErrorCode DMSNESSetMFFunction(DM dm, PetscErrorCode (*f)(SNES, Vec, Vec, void *), void *ctx)
Logically Collective
Input Parameters#
f - residual evaluation function; see
SNESFunctionfor details
See Also#
DMSNESSetContext(), SNESSetFunction(), DMSNESSetJacobian(), SNESFunction, DMSNESSetFunction()
Level#
advanced
Location#
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages