petsc-3.9.4 2018-09-11
Report Typos and Errors

SNESTSFormFunction

Function to evaluate nonlinear residual

Synopsis

#include "petscts.h"  
PetscErrorCode  SNESTSFormFunction(SNES snes,Vec U,Vec F,void *ctx)
Logically Collective on SNES

Input Parameter

snes - nonlinear solver
U - 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

Implementations

SNESTSFormFunction_ARKIMEX in src/ts/impls/arkimex/arkimex.c
SNESTSFormFunction_BDF in src/ts/impls/bdf/bdf.c
SNESTSFormFunction_EIMEX in src/ts/impls/eimex/eimex.c
SNESTSFormFunction_GLEE in src/ts/impls/glee/glee.c
SNESTSFormFunction_Alpha in src/ts/impls/implicit/alpha/alpha1.c
SNESTSFormFunction_Alpha in src/ts/impls/implicit/alpha/alpha2.c
SNESTSFormFunction_GLLE in src/ts/impls/implicit/glle/glle.c
SNESTSFormFunction_Theta in src/ts/impls/implicit/theta/theta.c
SNESTSFormFunction_Mimex in src/ts/impls/mimex/mimex.c
SNESTSFormFunction_Pseudo in src/ts/impls/pseudo/posindep.c
SNESTSFormFunction_RosW in src/ts/impls/rosw/rosw.c

Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages