petsc-3.7.1 2016-05-15
SNESSetInitialFunction
Sets the function vector to be used as the function norm at the initialization of the method. In some instances, the user has precomputed the function before calling SNESSolve. This function allows one to avoid a redundant call to SNESComputeFunction in that case.
Synopsis
#include "petscsnes.h"
PetscErrorCode SNESSetInitialFunction(SNES snes, Vec f)
Logically Collective on SNES Many br
Input Parameters
| snes | - the SNES context Many br |
| f | - vector to store function value Many br |
Notes
This should not be modified during the solution procedure. Many br
This is used extensively in the SNESFAS hierarchy and in nonlinear preconditioning. Many br
Many br
Keywords
SNES, nonlinear, set, function
See Also
SNESSetFunction(), SNESComputeFunction(), SNESSetInitialFunctionNorm()
Level:developer
Location:src/snes/interface/snes.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages