PetscWeakFormHasJacobianPreconditioner — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# PetscWeakFormHasJacobianPreconditioner

Returns whether the `PetscWeakForm` has any Jacobian preconditioner (`g0`, `g1`, `g2`, or `g3`) pointwise functions registered

## Synopsis

    #include "petscds.h"
    PetscErrorCode PetscWeakFormHasJacobianPreconditioner(PetscWeakForm wf, PetscBool *hasJacPre)

Not Collective

## Input Parameter

- wf - The `PetscWeakForm`

## Output Parameter

- hasJacPre - `PETSC_TRUE` if any Jacobian preconditioner pointwise functions are registered, `PETSC_FALSE` otherwise

## See Also

`PetscWeakForm`, `PetscWeakFormSetJacobianPreconditioner()`, `PetscWeakFormGetJacobianPreconditioner()`, `PetscWeakFormHasJacobian()`, `PetscWeakFormHasBdJacobianPreconditioner()`

## Level

intermediate

## Location

src/dm/dt/interface/dtweakform.c

Index of all DT routines
Table of Contents for all manual pages
Index of all manual pages