PCPatchSetConstructType#
Set the way patches are constructed for a PCPATCH preconditioner
Synopsis#
#include "petscpc.h"
#include "petscmat.h"
PetscErrorCode PCPatchSetConstructType(PC pc, PCPatchConstructType ctype, PetscErrorCode (*func)(PC pc, PetscInt *npatch, IS *patches[], IS *patchIterationSet, PetscCtx ctx), PetscCtx ctx)
Logically Collective
Input Parameters#
pc - the
PCPATCHpreconditionerctype - the
PCPatchConstructTypeselecting the patch construction strategy (e.g.PC_PATCH_STAR,PC_PATCH_VANKA,PC_PATCH_PARDECOMP,PC_PATCH_USER,PC_PATCH_PYTHON)func - 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#
KSP: Linear System Solvers, PCPATCH, PCPatchGetConstructType(), PCPatchConstructType
Level#
advanced
Location#
src/ksp/pc/impls/patch/pcpatch.c
Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages