petsc-3.14.6 2021-03-30
Report Typos and Errors


indicates if the SNES uses matrix free finite difference matrix vector products to apply the Jacobian.


#include "petscsnes.h"  
PetscErrorCode  SNESGetUseMatrixFree(SNES snes,PetscBool *mf_operator,PetscBool *mf)
Collective on SNES

Input Parameter

snes - SNES context

Output Parameters

mf_operator - use matrix-free only for the Amat used by SNESSetJacobian(), this means the user provided Pmat will continue to be used
mf - use matrix-free for both the Amat and Pmat used by SNESSetJacobian(), both the Amat and Pmat set in SNESSetJacobian() will be ignored

Options Database

-snes_mf - use matrix free for both the mat and pmat operator
-snes_mf_operator - use matrix free only for the mat operator

See Also

SNESSetUseMatrixFree(), MatCreateSNESMF()




Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages