#include "taosolver.h" PetscErrorCode TaoSetConvergenceTest(TaoSolver tao, PetscErrorCode (*conv)(TaoSolver,void*), void *ctx)Logically Collective on TaoSolver
tao | - the TaoSolver object | |
conv | - the routine to test for convergence | |
ctx | - [optional] context for private data for the convergence routine (may be PETSC_NULL) |
PetscErrorCode conv(TaoSolver tao, void *ctx)
tao | - the TaoSolver object | |
ctx | - [optional] convergence context |
Note: The new convergence testing routine should call TaoSetTerminationReason().
Level:advanced
Location:src/interface/taosolver.c
TAO Solver Index
Table of Contents