Skip to main content
Ctrl+K
PETSc 3.22.5 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
  • TSTrajectorySet

TSTrajectorySet#

Sets a vector of state in the trajectory object

Synopsis#

#include "petscts.h"  
PetscErrorCode TSTrajectorySet(TSTrajectory tj, TS ts, PetscInt stepnum, PetscReal time, Vec X)

Collective

Input Parameters#

  • tj - the trajectory object

  • ts - the time stepper object (optional)

  • stepnum - the step number

  • time - the current time

  • X - the current solution

Note#

Usually one does not call this routine, it is called automatically during TSSolve()

See Also#

TS: Scalable ODE and DAE Solvers, TSTrajectorySetUp(), TSTrajectoryDestroy(), TSTrajectorySetType(), TSTrajectorySetVariableNames(), TSGetTrajectory(), TSTrajectoryGet(), TSTrajectoryGetVecs()

Level#

developer

Location#

src/ts/trajectory/interface/traj.c

Implementations#

TSTrajectorySet_Basic() in src/ts/trajectory/impls/basic/trajbasic.c
TSTrajectorySet_Memory() in src/ts/trajectory/impls/memory/trajmemory.c
TSTrajectorySet_Singlefile() in src/ts/trajectory/impls/singlefile/singlefile.c
TSTrajectorySet_Visualization() in src/ts/trajectory/impls/visualization/trajvisualization.c


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

On this page
  • Synopsis
  • Input Parameters
  • Note
  • See Also
  • Level
  • Location
  • Implementations
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-03-28T16:05:55-0500 (v3.22.5).