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

TSInterpolate

Interpolate the solution computed during the previous step to an arbitrary location in the interval

Synopsis

#include "petscts.h"  
PetscErrorCode TSInterpolate(TS ts,PetscReal t,Vec U)
Collective on TS

Input Argument

ts - time stepping context
t - time to interpolate to

Output Argument

U -state at given time

Developer Notes

TSInterpolate() and the storing of previous steps/stages should be generalized to support delay differential equations and continuous adjoints.

Keywords

TS, set

See Also

TSSetExactFinalTime(), TSSolve()

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/ex16.c.html
src/ts/examples/tutorials/ex19.c.html
src/ts/examples/tutorials/ex20.c.html
src/ts/examples/tutorials/ex20adj.c.html
src/ts/examples/tutorials/ex20opt_p.c.html
src/ts/examples/tutorials/ex20opt_ic.c.html