#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 : this takes an optional truth value (0/1/no/yes/true/false) |