GSNESEvaluateRhsFunction

Constructs only the constant portion of the nonlinear equation, that is the portion arising from functions independent of the solution variable x.

Synopsis

#include "petscsnes.h" 
#include "gsolver.h" 
int GSNESEvaluateRhsFunction(GSNES snes, GVec x, GVec f, void *ctx)
Collective on GSNES

Input Parameters

snes - The grid SNES
x - The current iterate
ctx - The optional user context

Output Parameter

f -The function value

Notes

This function actually constructs -f since f is usually written on the right, and the user cannot just multiply by -1 after boundary conditions are imposed.

Keywords

grid SNES, rhs, function

See Also

GSNESEvaluateRhsOperator(), GSNESEvaluateRhs(), GSNESEvaluateJacobian()

Level:advanced
Location:
src/gsolver/interface/gsnes.c
Index of all GSolver routines
Table of Contents for all manual pages
Index of all manual pages