SNESComputeFunction

Computes the function that has been set with SNESSetFunction().

Synopsis

int SNESComputeFunction(SNES snes,Vec x, Vec y)
Collective on SNES

Input Parameters

snes - the SNES context
x - input vector

Output Parameter

y -function vector, as set by SNESSetFunction()

Notes

SNESComputeFunction() is valid for SNES_NONLINEAR_EQUATIONS methods only. Analogous routines for SNES_UNCONSTRAINED_MINIMIZATION methods areSNESComputeMinimizationFunction() and SNESComputeGradient();

Keywords

SNES, nonlinear, compute, function

See Also

SNESSetFunction(), SNESGetFunction()

Location: src/snes/interface/snes.c
SNES Index
Table of Contents