#include "petscsnes.h" PetscErrorCode SNESSetConvergenceTest(SNES snes,PetscErrorCode (*SNESConvergenceTestFunction)(SNES,PetscInt,PetscReal,PetscReal,PetscReal,SNESConvergedReason*,void*),void *cctx,PetscErrorCode (*destroy)(void*))Logically Collective on SNES
snes | - the SNES context | |
SNESConvergenceTestFunction | - routine to test for convergence | |
cctx | - [optional] context for private data for the convergence routine (may be NULL) | |
destroy | - [optional] destructor for the context (may be NULL; PETSC_NULL_FUNCTION in Fortran) |