# SNESLineSearchGetOrder
Gets the line search approximation order. 
## Synopsis
```
#include "petscsnes.h" 
PetscErrorCode SNESLineSearchGetOrder(SNESLineSearch linesearch, PetscInt *order)
```

## Input Parameter

- ***linesearch -*** linesearch context



## Output Parameter

- ***order -*** The order



## Possible Values for order

- ***1 or `SNES_LINESEARCH_ORDER_LINEAR` -*** linear order
- ***2 or `SNES_LINESEARCH_ORDER_QUADRATIC` -*** quadratic order
- ***3 or `SNES_LINESEARCH_ORDER_CUBIC` -*** cubic order





## See Also
 `SNESLineSearch`, `SNESLineSearchSetOrder()`

## Level
intermediate

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


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