DMSNESCreateJacobianMF#

Create a Mat which computes the action of the Jacobian matrix-free

Synopsis#

#include "petscdmplex.h" 
#include "petscsnes.h"   
PetscErrorCode DMSNESCreateJacobianMF(DM dm, Vec X, void *user, Mat *J)

Collective

Input Parameters#

  • dm - The DM

  • X - The evaluation point for the Jacobian

  • user - A user context, or NULL

Output Parameter#

Notes#

Vec X is kept in J, so updating X then updates the evaluation point.

This only works for DMPLEX

See Also#

SNES: Nonlinear Solvers, DM, SNES, DMSNESComputeJacobianAction()

Level#

advanced

Location#

src/snes/utils/dmplexsnes.c


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