# SNESKSPGetParametersEW
Gets parameters for Eisenstat-Walker convergence criteria for the linear solvers within an inexact Newton method. 
## Synopsis
```
#include "petscsnes.h"  
PetscErrorCode SNESKSPGetParametersEW(SNES snes, PetscInt *version, PetscReal *rtol_0, PetscReal *rtol_max, PetscReal *gamma, PetscReal *alpha, PetscReal *alpha2, PetscReal *threshold)
```
Not Collective


## Input Parameter

- ***snes -*** `SNES` context



## Output Parameters

- ***version -*** version 1, 2 (default is 2), 3 or 4
- ***rtol_0 -*** initial relative tolerance (0 <= rtol_0 < 1)
- ***rtol_max -*** maximum relative tolerance (0 <= rtol_max < 1)
- ***gamma -*** multiplicative factor for version 2 rtol computation (0 <= gamma2 <= 1)
- ***alpha -*** power for version 2 rtol computation (1 < alpha <= 2)
- ***alpha2 -*** power for safeguard
- ***threshold -*** threshold for imposing safeguard (0 < threshold < 1)





## See Also
 `SNES`, `SNESKSPSetUseEW()`, `SNESKSPGetUseEW()`, `SNESKSPSetParametersEW()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/interface/snes.c.html#SNESKSPGetParametersEW">src/snes/interface/snes.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/snes/interface/snes.c)


[Index of all SNES routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
