# TSSolve#

Steps the requested number of timesteps.

## Synopsis#

#include "petscts.h"
PetscErrorCode TSSolve(TS ts, Vec u)


Collective

## Input Parameters#

• ts - the TS context obtained from TSCreate()

• u - the solution vector (can be null if TSSetSolution() was used and TSSetExactFinalTime(ts,TS_EXACTFINALTIME_MATCHSTEP) was not used, otherwise must contain the initial conditions and will contain the solution at the final requested time

## Notes#

The final time returned by this function may be different from the time of the internally held state accessible by TSGetSolution() and TSGetTime() because the method may have stepped over the final time.

TS: Scalable ODE and DAE Solvers, TS, TSCreate(), TSSetSolution(), TSStep(), TSGetTime(), TSGetSolveTime()

beginner

## Location#

src/ts/interface/ts.c

Edit on GitLab