petsc-3.8.4 2018-03-24
Report Typos and Errors

TSSetStepNumber

Sets the number of steps completed.

Synopsis

#include "petscts.h"  
PetscErrorCode TSSetStepNumber(TS ts,PetscInt steps)
Logically Collective on TS

Input Parameters

ts - the TS context
steps - number of steps completed so far

Notes

For most uses of the TS solvers the user need not explicitly call TSSetStepNumber(), as the step counter is appropriately updated in TSSolve()/TSStep()/TSRollBack(). Power users may call this routine to reinitialize timestepping by setting the step counter to zero (and time to the initial time) to solve a similar problem with different initial conditions or parameters. Other possible use case is to continue timestepping from a previously interrupted run in such a way that TS monitors will be called with a initial nonzero step counter.

Keywords

TS, timestep, set, iteration, number

See Also

TSGetStepNumber(), TSSetTime(), TSSetTimeStep(), TSSetSolution()

Level:advanced
Location:
src/ts/interface/ts.c
Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/ts/examples/tutorials/ex11.c.html