#include "petscts.h" PetscErrorCode TSAdjointSetForward(TS ts,Mat didp)Logically Collective on TS
|ts||- the TS context obtained from TSCreate()|
|didp||- the derivative of initial values w.r.t. parameters|
Notes: When computing sensitivies w.r.t. initial condition, set didp to NULL so that the solver will take it as an identity matrix mathematically. TSAdjoint does not reset the tangent linear solver automatically, TSAdjointResetForward() should be called to reset the tangent linear solver.