petsc-3.8.3 2017-12-09
Report Typos and Errors

TSCreate

This function creates an empty timestepper. The problem type can then be set with TSSetProblemType() and the type of solver can then be set with TSSetType().

Synopsis

#include "petscts.h"  
PetscErrorCode  TSCreate(MPI_Comm comm, TS *ts)
Collective on MPI_Comm

Input Parameter

comm -The communicator

Output Parameter

ts -The TS

Developer Notes: TS essentially always creates a SNES object even though explicit methods do not use it. This is unfortunate and should be fixed at some point. The flag snes->usessnes indicates if the particular method does use SNES and regulates if the information about the SNES is printed in TSView(). TSSetFromOptions() does call SNESSetFromOptions() which can lead to users being confused by help messages about meaningless SNES options.

Keywords

TS, create

See Also

TSSetType(), TSSetUp(), TSDestroy(), TSSetProblemType()

Level:beginner
Location:
src/ts/interface/tscreate.c
Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/ts/examples/tutorials/ex1.c.html
src/ts/examples/tutorials/ex2.c.html
src/ts/examples/tutorials/ex3.c.html
src/ts/examples/tutorials/ex4.c.html
src/ts/examples/tutorials/ex5.c.html
src/ts/examples/tutorials/ex6.c.html
src/ts/examples/tutorials/ex7.c.html
src/ts/examples/tutorials/ex8.c.html
src/ts/examples/tutorials/ex9.c.html
src/ts/examples/tutorials/ex10.c.html
src/ts/examples/tutorials/ex11.c.html