petsc-3.7.1 2016-05-15
Report Typos and Errors

SNESComputeFunction

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

Synopsis

#include "petscsnes.h"  
PetscErrorCode  SNESComputeFunction(SNES snes,Vec x,Vec y)
Collective on SNES Many br

Input Parameters

snes - the SNES context Many br
x - input vector Many br

Output Parameter

y -function vector, as set by SNESSetFunction() Many br

Notes

SNESComputeFunction() is typically used within nonlinear solvers Many brimplementations, so most users would not generally call this routine Many brthemselves. Many br

Many br

Keywords

SNES, nonlinear, compute, function

See Also

SNESSetFunction(), SNESGetFunction()

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

Examples

src/snes/examples/tutorials/ex12.c.html
src/snes/examples/tutorials/ex22.c.html
src/snes/examples/tutorials/ex62.c.html
src/snes/examples/tutorials/ex77.c.html
src/snes/examples/tutorials/ex1f.F.html
src/snes/examples/tutorials/ex74f.F90.html