#include "petscsnes.h" PetscErrorCode SNESLineSearchSetPostCheck(SNESLineSearch linesearch, SNESLineSearchPostCheckFunc func,void *ctx)Logically Collective on SNESLineSearch
linesearch | - the SNESLineSearch context | |
func | - [optional] function evaluation routine | |
ctx | - [optional] user-defined context for private data for the function evaluation routine (may be PETSC_NULL) |
func (SNESLineSearch linesearch,Vec x,Vec y, Vec w, *changed_y, PetscBool *changed_w);
x | - old solution vector | |
y | - search direction vector | |
w | - new solution vector | |
changed_y | - indicates that the line search changed y | |
changed_w | - indicates that the line search changed w |