PCPatchGetPrecomputeElementTensors — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# PCPatchGetPrecomputeElementTensors

Get whether element tensors are precomputed once and reused when assembling each patch matrix

## Synopsis

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

Not Collective

## Input Parameter

- pc - the `PCPATCH` preconditioner

## Output Parameter

- flg - `PETSC_TRUE` if the element tensors are precomputed, `PETSC_FALSE` if they are recomputed for each patch

## See Also

KSP: Linear System Solvers, `PCPATCH`, `PCPatchSetPrecomputeElementTensors()`, `PCPatchSetSaveOperators()`

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