PCPatchGetSubKSP#

Get the per-patch KSP objects used to solve each local patch problem in a PCPATCH preconditioner

Synopsis#

#include "petscpc.h" 
#include "petscmat.h" 
PetscErrorCode PCPatchGetSubKSP(PC pc, PetscInt *npatch, KSP *ksp[])

Not Collective

Input Parameter#

Output Parameters#

  • npatch - number of local patches (may be NULL)

  • ksp - newly allocated array of length npatch holding the per-patch KSP objects; the caller must free the array with PetscFree()

Note#

PCSetUp() must have been called on the PCPATCH (typically through KSPSetUp() on the outer KSP) before calling this routine.

See Also#

KSP: Linear System Solvers, PCPATCH, KSP, PCASMGetSubKSP()

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