petsc-3.3-p7 2013-05-11

SNESLineSearchSetPostCheck

Sets a post-check function for the line search routine.

Synopsis

#include "petscsnes.h" 
PetscErrorCode  SNESLineSearchSetPostCheck(SNESLineSearch linesearch, SNESLineSearchPostCheckFunc func,void *ctx)
Logically Collective on SNESLineSearch

Input Parameters

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)

Calling sequence of func

   func (SNESLineSearch linesearch,Vec x,Vec y,  Vec w, *changed_y, PetscBool *changed_w);

Keywords

set, linesearch, post-check

See Also

SNESLineSearchSetPreCheck()

Level:intermediate
Location:
src/snes/linesearch/interface/linesearch.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/snes/examples/tutorials/ex3.c.html
src/snes/examples/tutorials/ex39f90.F.html
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