# 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

## 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.

TS: Scalable ODE and DAE Solvers, TS, SNES, TSSetType(), TSSetUp(), TSDestroy(), TSSetProblemType()

beginner

## Location#

src/ts/interface/tscreate.c

Edit on GitLab