Skip to main content
Ctrl+K
PETSc 3.23.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
  • TSSetProblemType

TSSetProblemType#

Sets the type of problem to be solved.

Synopsis#

#include "petscts.h"  
PetscErrorCode TSSetProblemType(TS ts, TSProblemType type)

Not collective

Input Parameters#

  • ts - The TS

  • type - One of TS_LINEAR, TS_NONLINEAR where these types refer to problems of the forms

         U_t - A U = 0      (linear)
         U_t - A(t) U = 0   (linear)
         F(t,U,U_t) = 0     (nonlinear)

See Also#

TS: Scalable ODE and DAE Solvers, TSSetUp(), TSProblemType, TS

Level#

beginner

Location#

src/ts/interface/ts.c

Examples#

src/ts/tutorials/ex21.c
src/ts/tutorials/ex51.c
src/ts/tutorials/ex41.c
src/tao/unconstrained/tutorials/burgers_spectral.c
src/tao/unconstrained/tutorials/spectraladjointassimilation.c
src/ts/tutorials/ex17.c
src/ts/tutorials/ex14.c
src/ts/tutorials/ex15.c
src/ts/tutorials/ex1.c
src/ts/tutorials/ex12.c


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

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

© Copyright 1991-2025, 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 2025-08-31T04:20:41-0500 (v3.23.6-4-g40ad8c3f64ae).