petsc-3.14.5 2021-03-03
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

### Input Parameters

| snes | - the SNES context
| x | - input vector

### Output Parameter

| y | - function vector, as set by SNESSetFunction()

### Notes

SNESComputeFunction() is typically used within nonlinear solvers implementations, so most users would not generally call this routine themselves.

### See Also

SNESSetFunction(), SNESGetFunction()

### Level

developer

### Location

src/snes/interface/snes.c

### Examples

src/snes/tutorials/ex12.c.html
src/snes/tutorials/ex22.c.html
src/snes/tutorials/ex77.c.html
src/snes/tutorials/ex1f.F90.html
src/ts/tutorials/ex48.c.html
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages