TSSetType

Sets the method for the timestepping solver.

Synopsis

int TSSetType(TS ts,TSType method)
Collective on TS

Input Parameters

ts - the TS context
method - a known method

Options Database Command

-ts_type <method> -Sets the method; use -help for a list of available methods (for instance, euler)

Notes

See "petsc/include/ts.h" for available methods (for instance)
TS_EULER -Euler
TS_PVODE -PVODE interface
TS_BEULER -Backward Euler
TS_PSEUDO -Pseudo-timestepping

Normally, it is best to use the TSSetFromOptions() command andthen set the TS type from the options database rather than by usingthis routine. Using the options database provides the user withmaximum flexibility in evaluating the many different solvers. The TSSetType() routine is provided for those situations where itis necessary to set the timestepping solver independently of thecommand line or options database. This might be the case, for example, when the choice of solver changes during the execution of theprogram, and the user's application is taking responsibility forchoosing the appropriate method. In other words, this routine isfor the advanced user.

Keywords

TS, set, type

Examples

src/ts/examples/tutorials/ex2f.F

Location: src/ts/interface/tsreg.c
Time Stepping
Table of Contents