SNESGetUseMatrixFree#
indicates if the SNES
uses matrix-free finite difference matrix vector products to apply the Jacobian.
Synopsis#
#include "petscsnes.h"
PetscErrorCode SNESGetUseMatrixFree(SNES snes, PetscBool *mf_operator, PetscBool *mf)
Not Collective, but the resulting flags will be the same on all MPI ranks
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 usedmf - use matrix-free for both the Amat and Pmat used by
SNESSetJacobian()
, both the Amat and Pmat set inSNESSetJacobian()
will be ignored
See Also#
SNES: Nonlinear Solvers, SNES
, SNESSetUseMatrixFree()
, MatCreateSNESMF()
Level#
intermediate
Location#
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages