petsc-3.14.5 2021-03-03
Report Typos and Errors

# TSSetUp

Sets up the internal data structures for the later use of a timestepper.

### Synopsis

    #include "petscts.h"
    PetscErrorCode  TSSetUp(TS ts)

Collective on TS

### Input Parameter

| ts | - the TS context obtained from TSCreate()

### Notes

For basic use of the TS solvers the user need not explicitly call TSSetUp(), since these actions will automatically occur during the call to TSStep() or TSSolve(). However, if one wishes to control this phase separately, TSSetUp() should be called after TSCreate() and optional routines of the form TSSetXXX(), but before TSStep() and TSSolve().

### See Also

TSCreate(), TSStep(), TSDestroy(), TSSolve()

### Level

advanced

### Location

src/ts/interface/ts.c

### Examples

src/ts/tutorials/ex1.c.html
src/ts/tutorials/ex17.c.html
src/ts/tutorials/ex28.c.html
src/ts/tutorials/ex42.c.html
src/ts/tutorials/ex1f.F.html

### Implementations

TSSetUp_ARKIMEX in src/ts/impls/arkimex/arkimex.c
TSSetUp_BDF in src/ts/impls/bdf/bdf.c
TSSetUp_EIMEX in src/ts/impls/eimex/eimex.c
TSSetUp_Euler in src/ts/impls/explicit/euler/euler.c
TSSetUp_RK_MultirateNonsplit in src/ts/impls/explicit/rk/mrk.c
TSSetUp_RK_MultirateSplit in src/ts/impls/explicit/rk/mrk.c
TSSetUp_RK in src/ts/impls/explicit/rk/rk.c
TSSetUp_SSP in src/ts/impls/explicit/ssp/ssp.c
TSSetUp_GLEE in src/ts/impls/glee/glee.c
TSSetUp_Alpha in src/ts/impls/implicit/alpha/alpha1.c
TSSetUp_Alpha in src/ts/impls/implicit/alpha/alpha2.c
TSSetUp_DiscGrad in src/ts/impls/implicit/discgrad/tsdiscgrad.c
TSSetUp_GLLE in src/ts/impls/implicit/glle/glle.c
TSSetUp_Sundials in src/ts/impls/implicit/sundials/sundials.c
TSSetUp_Theta in src/ts/impls/implicit/theta/theta.c
TSSetUp_BEuler in src/ts/impls/implicit/theta/theta.c
TSSetUp_CN in src/ts/impls/implicit/theta/theta.c
TSSetUp_Mimex in src/ts/impls/mimex/mimex.c
TSSetUp_MPRK in src/ts/impls/multirate/mprk.c
TSSetUp_Pseudo in src/ts/impls/pseudo/posindep.c
TSSetUp_RosW in src/ts/impls/rosw/rosw.c
TSSetUp_BasicSymplectic in src/ts/impls/symplectic/basicsymplectic/basicsymplectic.c
Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages