int KSPSetConvergenceTest(KSP ksp,int (*converge)(KSP,int,double,void*),void *cctx)Collective on KSP
| ksp | - iterative context obtained from KSPCreate() |
| converge | - pointer to int function |
| cctx | - context for private data for the convergence routine (may be null) |
converge (KSP ksp, int it, double rnorm, void *mctx)
| ksp | - iterative context obtained from KSPCreate() |
| it | - iteration number |
| rnorm | - (estimated) 2-norm of (preconditioned) residual |
| cctx | - optional convergence context, as set by KSPSetConvergenceTest() |
The default is a combination of relative and absolute tolerances. The residual value that is tested may be an approximation; routinesthat need exact values should compute them.
Location: src/ksp/interface/itfunc.c
KSP Index
Table of Contents