petsc-3.3-p7 2013-05-11
SNESTSFormFunction
Function to evaluate nonlinear residual
Synopsis
#include "petscts.h"
PetscErrorCode SNESTSFormFunction(SNES snes,Vec X,Vec F,void *ctx)
Logically Collective on SNES
Input Parameter
| snes | - nonlinear solver
|
| X | - the current state at which to evaluate the residual
|
| ctx | - user context, must be a TS
|
Output Parameter
F -the nonlinear residual
Notes
This function is not normally called by users and is automatically registered with the SNES used by TS.
It is most frequently passed to MatFDColoringSetFunction().
See Also
SNESSetFunction(), MatFDColoringSetFunction()
Level:advanced
Location:src/ts/interface/ts.c
Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages
Examples
src/ts/examples/tutorials/ex7.c.html
src/ts/examples/tutorials/ex10.c.html
src/ts/examples/tutorials/ex12.c.html
src/ts/examples/tutorials/ex13.c.html
src/ts/examples/tutorials/ex15.c.html
src/ts/examples/tutorials/ex17.c.html
src/ts/examples/tutorials/ex26.c.html