SNESPatchSetComputeOperator#

Set the callback used to assemble the per-patch Jacobian for a SNESPATCH solver

Synopsis#

#include "petscsnes.h" 
PetscErrorCode SNESPatchSetComputeOperator(SNES snes, PetscErrorCode (*func)(PC pc, PetscInt point, Vec x, Mat mat, IS cellIS, PetscInt n, const PetscInt *dofsArray, const PetscInt *dofsArrayWithAll, PetscCtx ctx), PetscCtx ctx)

Logically Collective

Input Parameters#

Calling sequence of func#

  • pc - the PC associated with the SNESPATCH solver

  • point - the point

  • x - the input solution (not used in linear problems)

  • mat - the patch matrix

  • cellIS - an array of the cell numbers

  • n - the size of dofsArray

  • dofsArray - the dofmap for the dofs to be solved for

  • dofsArrayWithAll - the dofmap for all dofs on the patch

  • ctx - the application context

See Also#

SNES: Nonlinear Solvers, SNESPATCH, PCPATCH, PCPatchSetComputeOperator(), SNESPatchSetComputeFunction()

Level#

advanced

Location#

src/snes/impls/patch/snespatch.c


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