PCPatchGetConstructType — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# PCPatchGetConstructType

Get the strategy currently used to construct patches for a `PCPATCH` preconditioner

## Synopsis

    #include "petscpc.h"
    #include "petscmat.h"
    PetscErrorCode PCPatchGetConstructType(PC pc, PCPatchConstructType *ctype, PetscErrorCode (**func)(PC pc, PetscInt *npatch, IS *patches[], IS *patchIterationSet, PetscCtx ctx), PetscCtxRt ctx)

Not Collective

## Input Parameter

- pc - the `PCPATCH` preconditioner

## Output Parameters

- ctype - the `PCPatchConstructType`

- func - the callback that builds the patches when `ctype` is `PC_PATCH_USER` or `PC_PATCH_PYTHON`; otherwise unchanged

- ctx - the application context associated with `func`; otherwise unchanged

## Calling sequence of `func`

- pc - the `PCPATCH` preconditioner

- npatch - number of patches

- patches - the `IS` that define each patch

- patchIterationSet - how the patches are iterated over

- ctx - optional application context

## See Also

KSP: Linear System Solvers, `PCPATCH`, `PCPatchSetConstructType()`, `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