TSSetMaxSteps#

Sets the maximum number of steps to use.

Synopsis#

#include "petscts.h"  
PetscErrorCode TSSetMaxSteps(TS ts, PetscInt maxsteps)

Logically Collective

Input Parameters#

  • ts - the TS context obtained from TSCreate()

  • maxsteps - maximum number of steps to use

Options Database Key#

  • -ts_max_steps - Sets maxsteps

Note#

Use PETSC_DETERMINE to reset the maximum number of steps to the default from when the object’s type was set

The default maximum number of steps is 5,000

Fortran Note#

Use PETSC_DETERMINE_INTEGER

See Also#

TS: Scalable ODE and DAE Solvers, TS, TSGetMaxSteps(), TSSetMaxTime(), TSSetExactFinalTime()

Level#

intermediate

Location#

src/ts/interface/ts.c

Examples#

src/ts/tutorials/ex1.c
src/ts/tutorials/ex50.c
src/tao/unconstrained/tutorials/burgers_spectral.c
src/ts/tutorials/ex1f.F90
src/ts/utils/dmplexlandau/tutorials/ex1.c
src/tao/unconstrained/tutorials/spectraladjointassimilation.c
src/ts/tutorials/ex74.c
src/ts/tutorials/ex3.c
src/ts/tutorials/ex5.c
src/ts/utils/dmplexlandau/tutorials/ex2.c


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