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#
snes - the
SNESPATCHsolverfunc - callback that assembles the patch Jacobian; forwarded to the underlying
PCPATCHviaPCPatchSetComputeOperator()ctx - optional application context passed to
func
Calling sequence of func#
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
dofsArraydofsArray - 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