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 50 51 52 53 54
|
<!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/TSAdaptChoose.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>TSAdaptChoose</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/TSAdaptChoose.html "><small>Report Typos and Errors</small></a></div>
<A NAME="TSAdaptChoose"><H1>TSAdaptChoose</H1></A>
choose which method and step size to use for the next step
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
#include "petscts.h"
<A HREF="../Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</A> <A HREF="../TS/TSAdaptChoose.html#TSAdaptChoose">TSAdaptChoose</A>(<A HREF="../TS/TSAdapt.html#TSAdapt">TSAdapt</A> adapt,<A HREF="../TS/TS.html#TS">TS</A> ts,<A HREF="../Sys/PetscReal.html#PetscReal">PetscReal</A> h,<A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A> *next_sc,<A HREF="../Sys/PetscReal.html#PetscReal">PetscReal</A> *next_h,<A HREF="../Sys/PetscBool.html#PetscBool">PetscBool</A> *accept)
</PRE>
Collective on <A HREF="../TS/TSAdapt.html#TSAdapt">TSAdapt</A>
<P>
<H3><FONT COLOR="#CC3333">Input Arguments</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>adapt </B></TD><TD>- adaptive contoller
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>h </B></TD><TD>- current step size
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#CC3333">Output Arguments</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>next_sc </B></TD><TD>- optional, scheme to use for the next step
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>next_h </B></TD><TD>- step size to use for the next step
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>accept </B></TD><TD>- <A HREF="../Sys/PETSC_TRUE.html#PETSC_TRUE">PETSC_TRUE</A> to accept the current step, <A HREF="../Sys/PETSC_FALSE.html#PETSC_FALSE">PETSC_FALSE</A> to repeat the current step with the new step size
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#CC3333">Note</FONT></H3>
The input value of parameter accept is retained from the last time step, so it will be <A HREF="../Sys/PETSC_FALSE.html#PETSC_FALSE">PETSC_FALSE</A> if the step is
being retried after an initial rejection.
<P>
<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
<A HREF="../TS/TSAdapt.html#TSAdapt">TSAdapt</A>, <A HREF="../TS/TSAdaptCandidatesClear.html#TSAdaptCandidatesClear">TSAdaptCandidatesClear</A>(), <A HREF="../TS/TSAdaptCandidateAdd.html#TSAdaptCandidateAdd">TSAdaptCandidateAdd</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/ts/adapt/interface/tsadapt.c.html#TSAdaptChoose">src/ts/adapt/interface/tsadapt.c</A>
<P><H3><FONT COLOR="CC3333">Implementations</FONT></H3><A HREF="../../../src/ts/adapt/impls/basic/adaptbasic.c.html#TSAdaptChoose_Basic">TSAdaptChoose_Basic in src/ts/adapt/impls/basic/adaptbasic.c</A><BR>
<A HREF="../../../src/ts/adapt/impls/cfl/adaptcfl.c.html#TSAdaptChoose_CFL">TSAdaptChoose_CFL in src/ts/adapt/impls/cfl/adaptcfl.c</A><BR>
<A HREF="../../../src/ts/adapt/impls/dsp/adaptdsp.c.html#TSAdaptChoose_DSP">TSAdaptChoose_DSP in src/ts/adapt/impls/dsp/adaptdsp.c</A><BR>
<A HREF="../../../src/ts/adapt/impls/glee/adaptglee.c.html#TSAdaptChoose_GLEE">TSAdaptChoose_GLEE in src/ts/adapt/impls/glee/adaptglee.c</A><BR>
<A HREF="../../../src/ts/adapt/impls/none/adaptnone.c.html#TSAdaptChoose_None">TSAdaptChoose_None in src/ts/adapt/impls/none/adaptnone.c</A><BR>
<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>
|