petsc-3.4.5 2014-06-29

TSStep

Steps one time step

Synopsis

#include "petscts.h"  
PetscErrorCode  TSStep(TS ts)
Collective on TS

Input Parameter

ts -the TS context obtained from TSCreate()

Notes

The hook set using TSSetPreStep() is called before each attempt to take the step. In general, the time step size may be changed due to adaptive error controller or solve failures. Note that steps may contain multiple stages.

This may over-step the final time provided in TSSetDuration() depending on the time-step used. TSSolve() interpolates to exactly the time provided in TSSetDuration(). One can use TSInterpolate() to determine an interpolated solution within the final timestep.

Keywords

TS, timestep, solve

See Also

TSCreate(), TSSetUp(), TSDestroy(), TSSolve(), TSSetPreStep(), TSSetPreStage(), TSInterpolate()

Level:intermediate
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/ex6.c.html