petsc-3.3-p6 2013-02-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);