petsc-3.12.5 2020-03-29
MatMFFDSetType
Sets the method that is used to compute the differencing parameter for finite differene matrix-free formulations.
Synopsis
#include "petscmat.h"
PetscErrorCode MatMFFDSetType(Mat mat,MatMFFDType ftype)
Input Parameters
Notes
For example, such routines can compute h for use in
Jacobian-vector products of the form
F(x+ha) - F(x)
F'(u)a ~= ----------------
h
See Also
MatCreateSNESMF(), MatMFFDRegister(), MatMFFDSetFunction(), MatCreateMFFD()
Level
advanced
Location
src/mat/impls/mffd/mffd.c
Implementations
MatMFFDSetType_MFFD in src/mat/impls/mffd/mffd.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages