TSSetTimeStep#

Allows one to reset the timestep at any time.

Synopsis#

#include "petscts.h"  
PetscErrorCode TSSetTimeStep(TS ts, PetscReal time_step)

Logically Collective

Input Parameters#

  • ts - the TS context obtained from TSCreate()

  • time_step - the size of the timestep

Options Database Key#

  • -ts_time_step

    - provide the initial time step

Notes#

This is only a suggestion, the actual initial time step used may differ

If this is called after TSSetUp(), it will not change the initial time step value printed by TSView()

See Also#

TS: Scalable ODE and DAE Solvers, TS, TSPSEUDO, TSGetTimeStep(), TSSetTime()

Level#

intermediate

Location#

src/ts/interface/ts.c

Examples#

src/tao/unconstrained/tutorials/burgers_spectral.c
src/ts/tutorials/ex41.c
src/tao/unconstrained/tutorials/spectraladjointassimilation.c
src/ts/utils/dmplexlandau/tutorials/ex1.c
src/ts/tutorials/ex22f.F90
src/ts/tutorials/ex1.c
src/ts/tutorials/ex20opt_ic.c
src/ts/tutorials/ex21.c
src/ts/utils/dmplexlandau/tutorials/ex2.c
src/ts/tutorials/ex49.c


Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages