:orphan:
# SNESNewtonTRPreCheck
Runs the precheck routine 
## Synopsis
```
#include "petscsnes.h"   
PetscErrorCode SNESNewtonTRPreCheck(SNES snes, Vec X, Vec Y, PetscBool *changed_Y)
```
Logically Collective


## Input Parameters

- ***snes -*** the solver
- ***X -*** The last solution
- ***Y -*** The step direction



## Output Parameter

- ***changed_Y -*** Indicator that the step direction `Y` has been changed.





## See Also
 `SNESNEWTONTR`, `SNESNewtonTRSetPreCheck()`, `SNESNewtonTRGetPreCheck()`, `SNESNewtonTRPostCheck()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/impls/tr/tr.c.html#SNESNewtonTRPreCheck">src/snes/impls/tr/tr.c</A>


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


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