#include "petscsnes.h" PetscErrorCode SNESSetErrorIfNotConverged(SNES snes,PetscBool flg)Logically Collective on SNES
snes | - iterative context obtained from SNESCreate() | |
flg | - PETSC_TRUE indicates you want the error generated |
-snes_error_if_not_converged <true,false> | - cause an immediate error condition and stop the program if the solver does not converge |