#include "petscts.h" PetscErrorCode TSAdaptHistorySetHistory(TSAdapt adapt, PetscInt n, PetscReal hist[], PetscBool backward)Logically Collective on TSAdapt
adapt | - the TSAdapt context | |
n | - size of the time history | |
hist | - the time history | |
backward | - if the time history has to be followed backward |
Notes: The time history is internally copied, and the user can free the hist array. The user still needs to specify the termination of the solve via TSSetMaxSteps().