SNESPatchSetConstructType#
Set the way patches are constructed for a SNESPATCH solver
Synopsis#
#include "petscsnes.h"
PetscErrorCode SNESPatchSetConstructType(SNES snes, PCPatchConstructType ctype, PetscErrorCode (*func)(PC pc, PetscInt *npatch, IS *patches[], IS *patchIterationSet, PetscCtx ctx), PetscCtx ctx)
Logically Collective
Input Parameters#
snes - the
SNESPATCHsolverctype - the
PCPatchConstructTypeselecting the patch construction strategyfunc - user callback that builds the patches, used only when
ctypeisPC_PATCH_USERorPC_PATCH_PYTHON; may beNULLotherwisectx - optional application context passed to
func
Calling sequence of func#
See Also#
SNES: Nonlinear Solvers, SNESPATCH, PCPATCH, PCPatchSetConstructType(), PCPatchConstructType
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