:orphan:
# SNESNewtonTRDCGetRhoFlag
Get whether the current solution update is within the trust-region. 
## Synopsis
```
#include "petscsnes.h"   
PetscErrorCode SNESNewtonTRDCGetRhoFlag(SNES snes, PetscBool *rho_flag)
```
Logically Collective


## Input Parameter

- ***snes -*** the nonlinear solver object



## Output Parameter

- ***rho_flag: `PETSC_TRUE` if the solution update is in the trust-*** region; otherwise, `PETSC_FALSE`





## See Also
 `SNESNEWTONTRDC`, `SNESNewtonTRDCPreCheck()`, `SNESNewtonTRDCGetPreCheck()`, , `SNESNewtonTRDCSetPreCheck()`,
`SNESNewtonTRDCSetPostCheck()`, `SNESNewtonTRDCGetPostCheck()`

## Level
developer

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/snes/impls/ntrdc/ntrdc.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)  
