SNESGetFunction
Returns the vector where the function is stored.
Synopsis
#include "snes.h"
int SNESGetFunction(SNES snes,Vec *r,void **ctx)
Not Collective, but Vec is parallel if SNES is parallel
Input Parameter
snes -the SNES context
Output Parameter
| r | - the function (or PETSC_NULL)
|
| ctx | - the function context (or PETSC_NULL)
|
Notes
SNESGetFunction() is valid for SNES_NONLINEAR_EQUATIONS methods only
Analogous routines for SNES_UNCONSTRAINED_MINIMIZATION methods are
SNESGetMinimizationFunction() and SNESGetGradient();
Keywords
SNES, nonlinear, get, function
See Also
SNESSetFunction(), SNESGetSolution(), SNESGetMinimizationFunction(),
SNESGetGradient()
Level:advanced
Location:src/snes/interface/snes.c
SNES Index
Table of Contents