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.

Level: developer

See Also

SNESSetFunction(), SNESGetFunction()

Location:snes.c