SNESGetJacobianDomainError — PETSc 3.24.5 documentation

Skip to main content
`Ctrl`+`K`

# SNESGetJacobianDomainError

Gets the status of the Jacobian domain error after a call to `SNESComputeJacobian()`

## Synopsis

    #include "petscsnes.h"
    PetscErrorCode SNESGetJacobianDomainError(SNES snes, PetscBool *domainerror)

Not Collective, different MPI processes may return different values

## Input Parameter

- snes - the `SNES` context

## Output Parameter

- domainerror - Set to `PETSC_TRUE` if there’s a Jacobian domain error; `PETSC_FALSE` otherwise.

## Notes

The value will only be true on those MPI processes that called `SNESSetJacobianDomainError()`

The value is reset to `PETSC_FALSE` when `SNESCheckJacobianDomainerror()` is called but only `SNESSetCheckJacobianDomainError()` was called

## See Also

SNES: Nonlinear Solvers, `SNES`, `SNESSetFunctionDomainError()`, `SNESComputeFunction()`, `SNESGetFunctionDomainError()`

## Level

advanced

## Location

src/snes/interface/snes.c

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