#include "petscsnes.h" PetscErrorCode SNESLineSearchApply(SNESLineSearch linesearch, Vec X, Vec F, PetscReal * fnorm, Vec Y)Collective on SNESLineSearch
linesearch | - The linesearch context | |
X | - The current solution | |
F | - The current function | |
fnorm | - The current norm | |
Y | - The search direction |
X | - The new solution | |
F | - The new function | |
fnorm | - The new function norm |
-snes_linesearch_type | - basic, bt, l2, cp, nleqerr, shell | |
-snes_linesearch_monitor [:filename] | - Print progress of line searches | |
-snes_linesearch_damping | - The linesearch damping parameter, default is 1.0 (no damping) | |
-snes_linesearch_norms | - Turn on/off the linesearch norms computation (SNESLineSearchSetComputeNorms()) | |
-snes_linesearch_keeplambda | - Keep the previous search length as the initial guess | |
-snes_linesearch_max_it | - The number of iterations for iterative line searches |