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 48
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/SNES/SNESNewtonTRPostCheck.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>SNESNewtonTRPostCheck</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<div id="version" align=right><b>petsc-3.14.5 2021-03-03</b></div>
<div id="bugreport" align=right><a href="mailto:petsc-maint@mcs.anl.gov?subject=Typo or Error in Documentation &body=Please describe the typo or error in the documentation: petsc-3.14.5 v3.14.5 docs/manualpages/SNES/SNESNewtonTRPostCheck.html "><small>Report Typos and Errors</small></a></div>
<A NAME="SNESNewtonTRPostCheck"><H1>SNESNewtonTRPostCheck</H1></A>
Called after the step has been determined in <A HREF="../SNES/SNESNEWTONTR.html#SNESNEWTONTR">SNESNEWTONTR</A> but before the function evaluation
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
#include "petscsnes.h"
static <A HREF="../Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</A> <A HREF="../SNES/SNESNewtonTRPostCheck.html#SNESNewtonTRPostCheck">SNESNewtonTRPostCheck</A>(<A HREF="../SNES/SNES.html#SNES">SNES</A> snes,<A HREF="../Vec/Vec.html#Vec">Vec</A> X,<A HREF="../Vec/Vec.html#Vec">Vec</A> Y,<A HREF="../Vec/Vec.html#Vec">Vec</A> W,<A HREF="../Sys/PetscBool.html#PetscBool">PetscBool</A> *changed_Y,<A HREF="../Sys/PetscBool.html#PetscBool">PetscBool</A> *changed_W)
</PRE>
Logically Collective on snes
<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 solver. X - The last solution
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>Y </B></TD><TD>- The full step direction
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>W </B></TD><TD>- The updated solution, W = X - Y
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#CC3333">Output Parameters</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>changed_Y </B></TD><TD>- indicator if step has been changed
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>changed_W </B></TD><TD>- Indicator if the new candidate solution W has been changed.
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#CC3333">Notes</FONT></H3>
If Y is changed then W is recomputed as X - Y
<P>
<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
<A HREF="../SNES/SNESNewtonTRSetPostCheck.html#SNESNewtonTRSetPostCheck">SNESNewtonTRSetPostCheck</A>(), <A HREF="../SNES/SNESNewtonTRGetPostCheck.html#SNESNewtonTRGetPostCheck">SNESNewtonTRGetPostCheck</A>()
<BR><P><B></B><H3><FONT COLOR="#CC3333">Level</FONT></H3>developer<BR>
<H3><FONT COLOR="#CC3333">Location</FONT></H3>
</B><A HREF="../../../src/snes/impls/tr/tr.c.html#SNESNewtonTRPostCheck">src/snes/impls/tr/tr.c</A>
<BR><A HREF="./index.html">Index of all SNES 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>
|