#include "petscts.h" PetscErrorCode TSAdjointSolve(TS ts)Collective on TS
ts | - the TS context obtained from TSCreate() |
-ts_adjoint_view_solution <viewerinfo> | - views the first gradient with respect to the initial values |
By default this will integrate back to the initial time, one can use TSAdjointSetSteps() to step back to a later time