#include "petscts.h" PetscErrorCode TSAdaptHistorySetTrajectory(TSAdapt adapt, TSTrajectory tj, PetscBool backward)Logically Collective on TSAdapt
adapt | - the TSAdapt context | |
tj | - the TSTrajectory context | |
backward | - if the time history has to be followed backward |
Notes: The time history is internally copied, and the user can destroy the TSTrajectory if not needed. The user still needs to specify the termination of the solve via TSSetMaxSteps().