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.
PetscErrorCode SNESSetInitialFunction(SNES snes, Vec f)
Logically Collective on SNES
|snes ||- the SNES context
|f ||- vector to store function value
This should not be modified during the solution procedure.
This is used extensively in the SNESFAS hierarchy and in nonlinear preconditioning.
SNESSetFunction(), SNESComputeFunction(), SNESSetInitialFunctionNorm()
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages