SNESFunction#
Functional form used to convey the nonlinear function to SNES
in SNESSetFunction()
Synopsis#
#include "petscsnes.h"
PetscErrorCode SNESFunction(SNES snes,Vec x,Vec f,void *ctx);
Collective
Input Parameters#
snes - the
SNES
contextx - state at which to evaluate residual
ctx - optional user-defined function context, passed in with
SNESSetFunction()
Output Parameter#
f - vector to put residual (function value)
See Also#
SNES: Nonlinear Solvers, SNESSetFunction()
, SNESGetFunction()
Level#
intermediate
Location#
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages