TSGetTime#

Gets the time of the most recently completed step.

Synopsis#

#include "petscts.h"  
PetscErrorCode TSGetTime(TS ts, PetscReal *t)

Not Collective

Input Parameter#

Output Parameter#

Note#

When called during time step evaluation (e.g. during residual evaluation or via hooks set using TSSetPreStep(), TSSetPreStage(), TSSetPostStage(), or TSSetPostStep()), the time is the time at the start of the step being evaluated.

See Also#

TS: Scalable ODE and DAE Solvers, TS, ``TSGetSolveTime(), TSSetTime(), TSGetTimeStep(), TSGetStepNumber()`

Level#

beginner

Location#

src/ts/interface/ts.c

Examples#

src/ts/tutorials/ex9.c
src/ts/utils/dmplexlandau/tutorials/ex1.c
src/ts/tutorials/ex76.c
src/ts/tutorials/ex53.c
src/ts/tutorials/ex17.c
src/ts/tutorials/ex40.c
src/ts/tutorials/ex45.c
src/ts/utils/dmplexlandau/tutorials/ex2.c
src/ts/tutorials/ex11.c
src/ts/tutorials/ex51.c


Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages