SNESSetCheckJacobianDomainError#

tells SNESSolve() whether to check if the user called SNESSetJacobianDomainError() to indicate a Jacobian domain error after each Jacobian evaluation.

Synopsis#

#include "petscsnes.h"  
#include "petscsnes.h"  
PetscErrorCode SNESSetCheckJacobianDomainError(SNES snes, PetscBool flg)

Logically Collective

Input Parameters#

  • snes - the SNES context

  • flg - indicates if or not to check Jacobian domain error after each Jacobian evaluation

Notes#

By default, it checks for the Jacobian domain error in the debug mode, and does not check it in the optimized mode.

Checks require one extra parallel synchronization for each Jacobian evaluation

See Also#

SNES: Nonlinear Solvers, SNES, SNESConvergedReason, SNESCreate(), SNESSetFunction(), SNESFunctionFn, SNESSetFunctionDomainError(), SNESGetCheckJacobianDomainError()

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