TSTrajectoryMemoryType — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# TSTrajectoryMemoryType

Selects the in-memory checkpointing scheme used by `TSTRAJECTORYMEMORY` to store the forward states needed for an adjoint or sensitivity computation

## Synopsis

    #include <petscts.h>
    typedef enum {
      TJ_REVOLVE,
      TJ_CAMS,
      TJ_PETSC
    } TSTrajectoryMemoryType;

## Values

- `TJ_REVOLVE` - the Revolve binomial checkpointing schedule of Griewank & Walther

- `TJ_CAMS` - the CAMS (cache-aware multistage) checkpointing schedule

- `TJ_PETSC` - PETSc’s own in-memory checkpointing implementation

## See Also

`TSTrajectory`, `TSTRAJECTORYMEMORY`, `TSTrajectoryMemorySetType()`, `TSSetSaveTrajectory()`

## Level

advanced

## Location

include/petscts.h

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