Skip to main content
Ctrl+K
PETSc 3.21.6 documentation - Home
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • TSSetMaxSteps

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#

The default maximum number of steps is 5000

See Also#

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

Level#

intermediate

Location#

src/ts/interface/ts.c

Examples#

src/tao/unconstrained/tutorials/spectraladjointassimilation.c
src/ts/tutorials/ex74.c
src/ts/tutorials/ex18.c
src/ts/tutorials/ex21.c
src/ts/tutorials/ex29.c
src/ts/tutorials/ex3.c
src/ts/tutorials/ex1.c
src/ts/tutorials/ex26.c
src/tao/unconstrained/tutorials/burgers_spectral.c
src/ts/tutorials/ex42.c


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

On this page
  • Synopsis
  • Input Parameters
  • Options Database Key
  • Note
  • See Also
  • Level
  • Location
  • Examples
Edit on GitLab
Show Source

© Copyright 1991-2024, UChicago Argonne, LLC and the PETSc Development Team.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.1.

Last updated on 2024-09-28T12:51:19-0500 (v3.21.6).