#include "petsctao.h" PetscErrorCode TaoGetTolerances(Tao tao, PetscReal *gatol, PetscReal *grtol, PetscReal *gttol)Not Collective
tao | - the Tao context |
gatol | - stop if norm of gradient is less than this | |
grtol | - stop if relative norm of gradient is less than this | |
gttol | - stop if norm of gradient is reduced by a this factor |
Note: NULL can be used as an argument if not all tolerances values are needed