:orphan: # TaoKSPSetUseEW Sets `SNES` use Eisenstat-Walker method for computing relative tolerance for linear solvers. ## Synopsis ``` #include "petsctao.h" PetscErrorCode TaoKSPSetUseEW(Tao tao, PetscBool flag) ``` Logically Collective ## Input Parameters - ***tao -*** Tao context - ***flag -*** `PETSC_TRUE` or `PETSC_FALSE` ## Note See `SNESKSPSetUseEW()` for customization details. ## Reference - **** -*** S. C. Eisenstat and H. F. Walker, "Choosing the forcing terms in an inexact Newton method", SISC 17 (1), pp.16-32, 1996. ## See Also [](ch_tao), `Tao`, `SNESKSPSetUseEW()` ## Level advanced ## Location src/tao/interface/taosolver.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/tao/interface/taosolver.c) [Index of all Tao routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)