1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>GSNESEvaluateRhsFunction</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<A NAME="GSNESEvaluateRhsFunction"><H1>GSNESEvaluateRhsFunction</H1></A>
Constructs only the constant portion of the nonlinear equation, that is the portion arising from functions independent of the solution variable x.
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
#include "petscsnes.h"
#include "gsolver.h"
int GSNESEvaluateRhsFunction(GSNES snes, GVec x, GVec f, void *ctx)
</PRE>
Collective on GSNES
<P>
<H3><FONT COLOR="#CC3333">Input Parameters</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>snes </B></TD><TD>- The grid <A HREF="../SNES/SNES.html#SNES">SNES</A>
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>x </B></TD><TD>- The current iterate
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>ctx </B></TD><TD>- The optional user context
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#CC3333">Output Parameter</FONT></H3>
<DT><B>f </B> -The function value
<br>
<P>
<H3><FONT COLOR="#CC3333">Notes</FONT></H3>
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.
<P>
<P>
<H3><FONT COLOR="#CC3333">Keywords</FONT></H3>
grid <A HREF="../SNES/SNES.html#SNES">SNES</A>, rhs, function
<BR>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
<A HREF="../GSolver/GSNESEvaluateRhsOperator.html#GSNESEvaluateRhsOperator">GSNESEvaluateRhsOperator</A>(), <A HREF="../GSolver/GSNESEvaluateRhs.html#GSNESEvaluateRhs">GSNESEvaluateRhs</A>(), <A HREF="../GSolver/GSNESEvaluateJacobian.html#GSNESEvaluateJacobian">GSNESEvaluateJacobian</A>()
<BR><P><B><P><B><FONT COLOR="#CC3333">Level:</FONT></B>advanced
<BR><FONT COLOR="#CC3333">Location:</FONT></B><A HREF="../../../src/gsolver/interface/gsnes.c.html#GSNESEvaluateRhsFunction">src/gsolver/interface/gsnes.c</A>
<BR><A HREF="./index.html">Index of all GSolver routines</A>
<BR><A HREF="../../index.html">Table of Contents for all manual pages</A>
<BR><A HREF="../singleindex.html">Index of all manual pages</A>
</BODY></HTML>
|