#include "petscsnes.h" PetscErrorCode SNESLineSearchSetOrder(SNESLineSearch linesearch,PetscInt order)
| linesearch | - linesearch context | |
| order | - The damping parameter |
| 1 or SNES_LINESEARCH_ORDER_LINEAR | - linear order | |
| 2 or SNES_LINESEARCH_ORDER_QUADRATIC | - quadratic order | |
| 3 or SNES_LINESEARCH_ORDER_CUBIC | - cubic order |
| bt | - cubic and quadratic | |
| cp | - linear and quadratic |