PCPatchSetPartitionOfUnity — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# PCPatchSetPartitionOfUnity

Set whether the patch contributions should be weighted by a partition of unity when combining local solves

## Synopsis

    #include "petscpc.h"
    #include "petscmat.h"
    PetscErrorCode PCPatchSetPartitionOfUnity(PC pc, PetscBool flg)

Logically Collective

## Input Parameters

- pc - the `PCPATCH` preconditioner

- flg - `PETSC_TRUE` to weight local patch updates by a partition of unity, `PETSC_FALSE` to sum them directly

## See Also

KSP: Linear System Solvers, `PCPATCH`, `PCPatchGetPartitionOfUnity()`

## Level

intermediate

## 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