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 49
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/TS/TSSetPostEvaluate.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>TSSetPostEvaluate</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<div id="version" align=right><b>petsc-3.10.3 2018-12-18</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.10.3 v3.10.3 docs/manualpages/TS/TSSetPostEvaluate.html "><small>Report Typos and Errors</small></a></div>
<A NAME="TSSetPostEvaluate"><H1>TSSetPostEvaluate</H1></A>
Sets the general-purpose function called once at the end of each step evaluation.
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
#include "petscts.h"
<A HREF="../Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</A> <A HREF="../TS/TSSetPostEvaluate.html#TSSetPostEvaluate">TSSetPostEvaluate</A>(<A HREF="../TS/TS.html#TS">TS</A> ts, <A HREF="../Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</A> (*func)(<A HREF="../TS/TS.html#TS">TS</A>))
</PRE>
Logically Collective on <A HREF="../TS/TS.html#TS">TS</A>
<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>ts </B></TD><TD>- The <A HREF="../TS/TS.html#TS">TS</A> context obtained from <A HREF="../TS/TSCreate.html#TSCreate">TSCreate</A>()
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>func </B></TD><TD>- The function
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#CC3333">Calling sequence of func</FONT></H3>
<DT><B><A HREF="../Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</A> func(<A HREF="../TS/TS.html#TS">TS</A> ts);</B> -
<br>
<P>
<H3><FONT COLOR="#CC3333">Note</FONT></H3>
Semantically, <A HREF="../TS/TSSetPostEvaluate.html#TSSetPostEvaluate">TSSetPostEvaluate</A>() differs from <A HREF="../TS/TSSetPostStep.html#TSSetPostStep">TSSetPostStep</A>() since the function it sets is called before event-handling
thus guaranteeing the same solution (computed by the time-stepper) will be passed to it. On the other hand, <A HREF="../TS/TSPostStep.html#TSPostStep">TSPostStep</A>()
may be passed a different solution, possibly changed by the event handler. <A HREF="../TS/TSPostEvaluate.html#TSPostEvaluate">TSPostEvaluate</A>() is called after the next step
solution is evaluated allowing to modify it, if need be. The solution can be obtained with <A HREF="../TS/TSGetSolution.html#TSGetSolution">TSGetSolution</A>(), the time step
with <A HREF="../TS/TSGetTimeStep.html#TSGetTimeStep">TSGetTimeStep</A>(), and the time at the start of the step is available via <A HREF="../TS/TSGetTime.html#TSGetTime">TSGetTime</A>()
<P>
<H3><FONT COLOR="#CC3333">Keywords</FONT></H3>
<A HREF="../TS/TS.html#TS">TS</A>, timestep
<BR>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
<A HREF="../TS/TSSetPreStage.html#TSSetPreStage">TSSetPreStage</A>(), <A HREF="../TS/TSSetPreStep.html#TSSetPreStep">TSSetPreStep</A>(), <A HREF="../TS/TSSetPostStep.html#TSSetPostStep">TSSetPostStep</A>(), <A HREF="../TS/TSGetApplicationContext.html#TSGetApplicationContext">TSGetApplicationContext</A>()
<BR><P><B></B><H3><FONT COLOR="#CC3333">Level</FONT></H3>intermediate<BR>
<H3><FONT COLOR="#CC3333">Location</FONT></H3>
</B><A HREF="../../../src/ts/interface/ts.c.html#TSSetPostEvaluate">src/ts/interface/ts.c</A>
<BR><A HREF="./index.html">Index of all TS 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>
|