petsc-3.11.4 2019-09-28
Report Typos and Errors

SNESSetUseMatrixFree

indicates that SNES should use matrix free finite difference matrix vector products internally to apply the Jacobian.

Synopsis

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

Input Parameters

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

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

Keywords

SNES, nonlinear, get, iteration, number,

See Also

SNESGetUseMatrixFree(), MatCreateSNESMF()

Level

intermediate

Location

src/snes/interface/snes.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages